32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-24 01:15:29 +00:00

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

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();
}
/**