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
1 changed files with 6 additions and 11 deletions

View File

@ -444,23 +444,18 @@ class RoboFile extends \Robo\Tasks
*/
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())
{
// 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);
}
else
{
$this->taskWaitForSeleniumStandaloneServer()
$this->taskSeleniumStandaloneServer()
->runSelenium()
->waitForSelenium()
->run()
->stopOnFail();
}