/** * Switches to specific iFrame. * * @param string $name iframe name (null for switching back) */ public function switchToIFrame($name = null) { if ($name) { $this->browser->selectFrame('dom=window.frames["' . $name . '"]'); } else { $this->browser->selectFrame('relative=top'); } }