public function VarbaseContext::iSwitchToIframe in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.8
Same name and namespace in other branches
- 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iSwitchToIframe()
Switch to an ifram by its id.
Varbase Context #varbase.
Example #1: When I switch to iframe "entity_browser_iframe_media_browser" Example #2: And I switch to iframe "remote-video-media"
@When /^(?:|I )switch to iframe "([^"]*)"$/
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 1594
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function iSwitchToIframe($iFrameLocator) {
$this
->getSession()
->getDriver()
->switchToIFrame($iFrameLocator);
}