We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee5410 commit f05c5c2Copy full SHA for f05c5c2
src/Codeception/Module/WebDriver.php
@@ -2539,6 +2539,7 @@ public function switchToIFrame($locator = null)
2539
$this->webDriver->switchTo()->defaultContent();
2540
return;
2541
}
2542
+ $els = null;
2543
try {
2544
$els = $this->_findElements("iframe[name='$locator']");
2545
} catch (\Exception $e) {
tests/web/WebDriverTest.php
@@ -1097,6 +1097,8 @@ public function testSwitchToIframe()
1097
$this->module->see('Lots of valuable data here');
1098
$this->module->switchToIFrame();
1099
$this->module->see('Iframe test');
1100
+ $this->module->switchToIFrame("//iframe[@name='content']");
1101
+ $this->module->see('Lots of valuable data here');
1102
1103
1104
0 commit comments