From 683168e8e43b10e34c70f6557a9b9c4c53f8f86e Mon Sep 17 00:00:00 2001 From: wilsonge Date: Mon, 12 Aug 2019 18:59:36 +0100 Subject: [PATCH] Fix reference to old selenium task --- RoboFile.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 30b6275..4386438 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -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(); }