focusWindow() public method

Set focus to window: /session/:sessionId/window (POST)
public focusWindow ( mixed $name ) : Session
$name mixed window handler or name attribute
return Session
Example #1
0
 /**
  * Switches to specific browser window.
  *
  * @param string $name window name (null for switching back to main window)
  */
 public function switchToWindow($name = null)
 {
     $this->wdSession->focusWindow($name ? $name : '');
 }