32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-26 18:10:11 +00:00

Kill selenium Server

Function to kill the already running selenium server
This commit is contained in:
kshitij sharma 2015-10-30 11:27:28 +01:00
parent 1f19991696
commit 46f42ceb73

View File

@ -211,4 +211,16 @@ class RoboFile extends \Robo\Tasks
$this->_exec('curl --retry 3 --retry-delay 5 -sS https://getcomposer.org/installer | php');
}
}
/**
* Kills the selenium server running
*
* @param string $host Web host of the remote server.
* @param string $port Server port.
*/
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");
}
}