lib/Remote/RemoteTargetLocator.php
public function window($handle)
    {
        $params = ['name' => (string) $handle];
        $this->executor->execute(DriverCommand::SWITCH_TO_WINDOW, $params);

        return $this->driver;
    }
public function window($handle)
    {
        $params = ['name' => (string) $handle];
        $this->executor->execute(DriverCommand::SWITCH_TO_WINDOW, $params);

        return $this->driver;
    }
public function window ( $ handle ) { $ params = [ 'name' => ( string ) $ handle ] ; $ this -> executor -> execute ( DriverCommand :: SWITCH_TO_WINDOW , $ params ) ; return $ this -> driver ; }
Switch the focus to another window by its handle.

@param string $handle The handle of the window to be focused on.
@return WebDriver The driver focused on the given window.
@see WebDriver::getWindowHandles
Switch the focus to another window by its handle .