Nearsoft\SeleniumClient\TargetLocator::window PHP 메소드

window() 공개 메소드

Change to the Window by passing in the name
public window ( String $identifier ) : Nearsoft\SeleniumClient\WebDriver
$identifier String either window name or window handle
리턴 Nearsoft\SeleniumClient\WebDriver The current webdriver
    public function window($identifier)
    {
        $params = array('name' => $identifier);
        $command = new Commands\Command($this->_driver, 'window', $params);
        $command->execute();
        return $this->_driver;
    }