2014-12-16 3 views
0

selenium-server-standalone-2.44.0.jar를 사용하여 MAC-Chrome 및 Fire Fox에서 스크립트를 실행할 수 있습니다. 내가 노드를 등록 할 때 내가Safari WebDriver가 Selenium Grid 2에 등록되지 않았습니다.

**Exception in thread "main" org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : {browserName=safari, javascriptEnabled=true, version=, cleanSession=true, platform=MAC} 
Command duration or timeout: 130 milliseconds** 

을 다음있어 메시지 :


MAC:/ labuser$ java -jar selenium-server-standalone-2.44.0.jar -role webdriver -hub ://x.x.x.x:4444/grid/register -port 5566 
23:08:11.804 INFO - Launching a selenium grid node 
23:08:12.259 INFO - Java: Apple Inc. 20.65-b04-466.1 
23:08:12.259 INFO - OS: Mac OS X 10.9.5 x86_64 
23:08:12.267 INFO - v2.44.0, with Core v2.44.0. Built from revision 76d78cf 
23:08:12.334 INFO - Default driver org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}] does not match with current platform: MAC 
23:08:12.457 INFO - RemoteWebDriver instances should connect to: ://x.x.x.x.1:5566/wd/hub 
23:08:12.457 INFO - Version Jetty/5.1.x 
23:08:12.458 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver] 
23:08:12.458 INFO - Started HttpContext[/selenium-server,/selenium-server] 
23:08:12.459 INFO - Started HttpContext[/,/] 
23:08:12.464 INFO - Started [email protected] 
23:08:12.464 INFO - Started HttpContext[/wd,/wd] 
23:08:12.466 INFO - Started SocketListener on 0.0.0.0:5566 
23:08:12.466 INFO - Started [email protected] 
23:08:12.527 INFO - using the json request : **{"class":"org.openqa.grid.common.RegistrationRequest","configuration":{"register":true,"port":5566,"host":"x.x.x.x","proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy","maxSession":5,"role":"webdriver","hubHost":"x.x.x.x","registerCycle":5000,"hub":"...x.x.x.x:4444/grid/register","hubPort":4444,"url":"...x.x.x.x:5566","remoteHost":"...x.x.x.x:5566"},"capabilities":[{"platform":"MAC","seleniumProtocol":"WebDriver","browserName":"firefox","maxInstances":5},{"platform":"MAC","seleniumProtocol":"WebDriver","browserName":"chrome","maxInstances":5},{"seleniumProtocol":"WebDriver","platform":"WINDOWS","browserName":"internet explorer","maxInstances":1}]}** 
23:08:12.527 INFO - Starting auto register thread. Will try to register every 5000 ms. 
23:08:12.527 INFO - Registering the node to hub :://x.x.x.x:4444/grid/register 
가에서 JSON 요청을 보면 나도 같은 MAC에서 사파리를 실행하지만, 나는 오류 노드 및 스크립트의 오류, 나는 사파리 webdriver 확장 자체가 서버에 등록 할 수 없다고 생각합니다. Safari webdriver 확장 2.38.0 (The Selenium Project)을 사용하고 있는데이 기능이 활성화되어 있습니다.

도움이 필요합니다.

답변

0

다음과 같이 노드를 시작하여 얻을 수있었습니다. java -jar selenium-server-standalone-2.44.0.jar -role webdriver -hub ... : // xxxx : 4444/grid/register -port 5566-browser "browserName = Internet Explorer, maxInstances = 5"

이제는 정상적으로 실행됩니다.

관련 문제