Skip to content

Commit

Permalink
Allow specify frame index in the "switchToIFrame" driver method
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Feb 18, 2024
1 parent 4ca4083 commit 6e8b226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
$this->getWebDriverSession()->frame(array('id' => $name));
}
Expand Down

0 comments on commit 6e8b226

Please sign in to comment.