Skip to content

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

Closed
aik099 wants to merge 1 commit into
minkphp:masterfrom
aik099:frame-switching-by-index
Closed

Allow specify frame index in the "switchToIFrame" driver method#378
aik099 wants to merge 1 commit into
minkphp:masterfrom
aik099:frame-switching-by-index

Conversation

@aik099

@aik099 aik099 commented Feb 18, 2024

Copy link
Copy Markdown
Member

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.

@codecov

codecov Bot commented Feb 18, 2024

Copy link
Copy Markdown

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.

Comment thread src/Selenium2Driver.php
}

public function switchToIFrame(?string $name = null)
public function switchToIFrame($name = null)

Copy link
Copy Markdown
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

aik099 commented Feb 23, 2024

Copy link
Copy Markdown
Member Author

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.

1 participant