私は使用しますselenium-server-srandalone-2.35.0.jar
。
サーバー側では、次のコマンドを実行します。java -jar selenium-server-standalone-2.35.0.jar -role hub -port 4951
そして次の構成で:
DesiredCapabilities capability = DesiredCapabilities.safari();
capability.setBrowserName("safari");
capability.setPlatform(org.openqa.selenium.Platform.MAC);
WebDriver webdriver = new RemoteWebDriver(new URL("http://localhost:4951/wd/hub"), capability);
MAC コンピューターで、次のコマンドを実行します。java -jar selenium-server-standalone-2.35.0.jar -role node -hub http://myIP:4951/grid/register
(新しいRemoteWebDriverで...)接続しようとすると、次の例外が表示されます:
org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : {platform=MAC, browserName=safari, version=}
Command duration or timeout: 720 milliseconds
私はその理由を見つけようとしますが、成功しません。何か助けはありますか?