Proxy the kill selenium task to the library

This commit is contained in:
wilsonge 2019-08-14 00:24:46 +01:00
parent c477abd151
commit 22df3bff56
No known key found for this signature in database
GPG Key ID: EF81319318FC9D04
1 changed files with 6 additions and 1 deletions

View File

@ -493,7 +493,12 @@ class RoboFile extends Tasks
public function killSelenium($host = 'localhost', $port = '4444')
{
$this->say('Trying to kill the selenium server.');
$this->_exec("curl http://$host:$port/selenium-server/driver/?cmd=shutDownSeleniumServer");
$this->taskSeleniumStandaloneServer()
->setUrl("http://$host:$port")
->killSelenium()
->run()
->stopOnFail();
}
/**