wait(20, 1000)->until( * WebDriverExpectedCondition::titleIs('WebDriver Page') * ); * * @param int $timeout_in_second * @param int $interval_in_millisecond * @return WebDriverWait */ public function wait( $timeout_in_second = 30, $interval_in_millisecond = 250 ); /** * An abstraction for managing stuff you would do in a browser menu. For * example, adding and deleting cookies. * * @return WebDriverOptions */ public function manage(); /** * An abstraction allowing the driver to access the browser's history and to * navigate to a given URL. * * @return WebDriverNavigationInterface * @see WebDriverNavigation */ public function navigate(); /** * Switch to a different window or frame. * * @return WebDriverTargetLocator * @see WebDriverTargetLocator */ public function switchTo(); // TODO: Add in next major release (BC) ///** // * @return WebDriverTouchScreen // */ //public function getTouch(); /** * @param string $name * @param array $params * @return mixed */ public function execute($name, $params); // TODO: Add in next major release (BC) ///** // * Execute custom commands on remote end. // * For example vendor-specific commands or other commands not implemented by php-webdriver. // * // * @see https://github.com/php-webdriver/php-webdriver/wiki/Custom-commands // * @param string $endpointUrl // * @param string $method // * @param array $params // * @return mixed|null // */ //public function executeCustomCommand($endpointUrl, $method = 'GET', $params = []); }