From 22df3bff56ffa177d339a76b2716fc1e2386123d Mon Sep 17 00:00:00 2001 From: wilsonge Date: Wed, 14 Aug 2019 00:24:46 +0100 Subject: [PATCH] Proxy the kill selenium task to the library --- RoboFile.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RoboFile.php b/RoboFile.php index 750ecbb..dd85b57 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -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(); } /**