Example #1
0
 public function setCommandExecutor(WebDriverCommandExecutor $executor)
 {
     $command = new WebDriverCommand($this->getSessionID(), DriverCommand::GET_CAPABILITIES, []);
     $result = $executor->execute($command);
     $values = $result->getValue();
     $this->browser = $values['browserName'];
     $this->platform = $values['platform'];
     return parent::setCommandExecutor($executor);
 }