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:
parent
1f19991696
commit
46f42ceb73
12
RoboFile.php
12
RoboFile.php
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user