32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-26 01:57:30 +00:00

Fix reference to old selenium task

This commit is contained in:
wilsonge 2019-08-12 18:59:36 +01:00
parent 685435e87d
commit 683168e8e4
No known key found for this signature in database
GPG Key ID: EF81319318FC9D04

View File

@ -444,23 +444,18 @@ class RoboFile extends \Robo\Tasks
*/ */
public function runSelenium() public function runSelenium()
{ {
if (!$this->isWindows())
{
$this->_exec("vendor/bin/selenium-server-standalone " . $this->getWebDriver() . ' >> selenium.log 2>&1 &');
}
else
{
$this->_exec('START java.exe -jar' . $this->getWebDriver() .
' vendor\joomla-projects\selenium-server-standalone\bin\selenium-server-standalone.jar ');
}
if ($this->isWindows()) if ($this->isWindows())
{ {
// TODO: Move this logic to the selenium standalone server task in the parent joomla repo
$this->_exec('START java.exe -jar' . $this->getWebDriver() .
' vendor\joomla-projects\selenium-server-standalone\bin\selenium-server-standalone.jar ');
sleep(3); sleep(3);
} }
else else
{ {
$this->taskWaitForSeleniumStandaloneServer() $this->taskSeleniumStandaloneServer()
->runSelenium()
->waitForSelenium()
->run() ->run()
->stopOnFail(); ->stopOnFail();
} }