Nearsoft\SeleniumClient\Commands\Command::execute PHP Method

execute() public method

public execute ( $trace = false )
    public function execute($trace = false)
    {
        $httpClient = $this->_driver->getHttpClient();
        $this->_response = $httpClient->execute($this, $trace);
        return $this->_response['body'];
    }

Usage Example

Esempio n. 1
0
 /**
  * Gets a list of available windows in current session
  * @return Array
  */
 public function getWindowHandles()
 {
     $command = new Commands\Command($this, 'window_handles');
     $results = $command->execute();
     return $results['value'];
 }