Selenium webdriver 使用Selenium Grid时无法与SafariDriver建立连接

Selenium webdriver 使用Selenium Grid时无法与SafariDriver建立连接,selenium-webdriver,safari,selenium-grid,safaridriver,Selenium Webdriver,Safari,Selenium Grid,Safaridriver,我面临一个问题,windows机器上的Selenium网格中心无法在mac机器上连接Safari浏览器。我看到浏览器打开,但随后出现一条错误消息: [ 0.007s] [safaridriver.client] Requesting connection at ws://localhost:xxxxx… [ 2.513s] [safaridriver.client] Unable to establish a connection with the SafariDriver 我的集线器安装在w

我面临一个问题,windows机器上的Selenium网格中心无法在mac机器上连接Safari浏览器。我看到浏览器打开,但随后出现一条错误消息:

[ 0.007s] [safaridriver.client] Requesting connection at ws://localhost:xxxxx…
[ 2.513s] [safaridriver.client] Unable to establish a connection with the SafariDriver
我的集线器安装在windows 7计算机上。Mac机器10.8上的“我的节点”命令:
java-jar-selenium-server-standalone-2.39.0.jar-role-node-hubhttp://10.xxx.xxx.xxx:4444/grid/register -端口5559-浏览器browserName=safari

Selenium Webdriver 2.39 Mac 10.8.5山狮 Safari版本6.0.5(8536.30.1)

有谁能在这方面给我指点一下可能出现的问题吗?起初我认为这是MAC机器上的端口问题,但我也打开了它们


谢谢,我也收到了同样的问题。但通过使用DesiredCapabilities提供平台名称解决了这个问题

DesiredCapabilities dc = DesiredCapabilities.safari();
dc.setPlatform(Platform.MAC);
在连接到Selenium网格时,还必须提到平台

java -jar selenium-server-standalone-2.40.0.jar -role node -hub http://XXXX:4444/grid/register -browser browserName=safari,platform=MAC