예제 #1
0
파일: WebDriver.php 프로젝트: magium/magium
 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);
 }