You are here

public function PhantomJSDriver::switchToIFrame in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php \Zumba\Mink\Driver\PhantomJSDriver::switchToIFrame()

Puts the browser control inside the IFRAME You own the control, make sure to go back to the parent calling this method with null

Parameters

string $name:

Overrides CoreDriver::switchToIFrame

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php, line 114

Class

PhantomJSDriver
Class PhantomJSDriver @package Behat\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function switchToIFrame($name = null) {

  //TODO: check response of the calls
  if ($name === null) {
    $this->browser
      ->popFrame();
    return;
  }
  else {
    $this->browser
      ->pushFrame($name);
  }
}