I starting selenium like this:
DISPLAY=:99 xvfb-run -a -n 1 -l -s "-screen 0, 1024x768x8" java -jar selenium-server-standalone-2.53.0.jar -Djava.security.egd=file:///dev/urandom switch -role hub
and after this create node like this:
java -jar selenium-server-standalone-2.46.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 5556 -debug
getting this:
14:26:27.121 INFO - Launching a Selenium Grid node 14:26:27.168 INFO - Adding browserName=firefox 14:26:27.514 WARN - error getting the parameters from the hub. The node may end up with wrong timeouts.com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 27 path $ 14:26:27.525 INFO - Java: Oracle Corporation 25.60-b23 14:26:27.525 INFO - OS: Linux 3.17.0 amd64 14:26:27.529 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b 14:26:27.570 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX 14:26:27.570 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped: registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX 14:26:27.570 INFO - Driver class not found: com.opera.core.systems.OperaDriver 14:26:27.571 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered 14:26:27.571 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped: registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX 14:26:27.572 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver 14:26:27.572 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered 14:26:27.598 INFO - Version Jetty/5.1.x 14:26:27.599 INFO - Started HttpContext[/selenium-server,/selenium-server]
And after this try to connect to port 5556
$this->driver = RemoteWebDriver::create('http://ift.tt/29hCzeO', $capabilities);
but getting error: "couldn't connect to host". What I do wrong?
Aucun commentaire:
Enregistrer un commentaire