/** * Switches to specific browser window. * * @param string $name window name (null for switching back to main window) */ public function switchToWindow($name = null) { $this->browser->selectWindow($name ? $name : 'null'); }