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
1 changed files with 12 additions and 0 deletions

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");
}
}