You are here

public function FeatureContext::switchToIFrame in Bear 7

@Given /^I switch to the iframe "([^"]*)"$/

Drupal Media Module 7.x-1.3

File

tests/features/bootstrap/FeatureContext.php, line 116

Class

FeatureContext
Defines application features from the specific context.

Code

public function switchToIFrame($name) {
  if ($name) {
    $this
      ->getMainContext()
      ->getSession()
      ->switchToIFrame($name);
  }
  else {
    $this
      ->getMainContect()
      ->getSession()
      ->switchToIFrame();
  }
}