You are here

public function VarbaseContext::iSwitchToIframe in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x

Same name and namespace in other branches
  1. 8.8 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 1602

Class

VarbaseContext
Defines application features from the specific context.

Code

public function iSwitchToIframe($iFrameLocator) {
  $this
    ->getSession()
    ->getDriver()
    ->switchToIFrame($iFrameLocator);
}