Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specify frame index in the "switchToIFrame" driver method #378

Closed
wants to merge 1 commit into from

Conversation

aik099
Copy link
Member

@aik099 aik099 commented Feb 18, 2024

See minkphp/Mink#866 (PR 3 of 4)


If the #382 happens to be merged before this PR, then we need to:

  1. rebase this PR on top of master branch;
  2. replace the if ($name) { line in the \Behat\Mink\Driver\Selenium2Driver::switchToIFrame method with the if ($name && !is_int($name)) { line.

Copy link

codecov bot commented Feb 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4ca4083) 90.19% compared to head (6e8b226) 90.19%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #378   +/-   ##
=========================================
  Coverage     90.19%   90.19%           
+ Complexity      168      167    -1     
=========================================
  Files             1        1           
  Lines           469      469           
=========================================
  Hits            423      423           
  Misses           46       46           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -428,7 +428,7 @@ public function switchToWindow(?string $name = null)
$this->getWebDriverSession()->focusWindow($name ?: '');
}

public function switchToIFrame(?string $name = null)
public function switchToIFrame($name = null)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to $nameOrIndex in this place?

@aik099
Copy link
Member Author

aik099 commented Feb 23, 2024

Closing as per minkphp/Mink#866 (comment) .

@aik099 aik099 closed this Feb 23, 2024
@aik099 aik099 deleted the frame-switching-by-index branch February 23, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant