1

Windows PC から iMac へのテストを開始しようとしています。

Safari 用の webdriver アドオンをダウンロードしてインストールし、Windows ベースの Selenium Grid ハブへの接続を確立しました。

テストを実行しようとすると、OperaDriver のエラーが表示されます。

org.openqa.selenium.WebDriverException: 最適なドライバー プロバイダー org.openqa.selenium.opera.OperaDriver は、Capabilities [{browserName=safari, safari.options={port=0, cleanSession=true] の新しいドライバー インスタンスを作成できません}、バージョン=9、プラットフォーム=MAC}]

現在のセットアップ:

ウィンドウズ PC:

java -jar selenium-server-standalone-2.53.0.jar -role hub -port 4445

マック:

java -jar selenium-server-standalone-2.53.0.jar -role node -nodeConfig node1Config.json

node1構成:

{
"capabilities": [
    {
        "browserName": "safari",
        "acceptSslCerts": true,
        "javascriptEnabled": true,
        "takeScreenshot": false,
        "browser-version": "9",
        "platform": "MAC",
        "maxInstances": 5,
        "cleanSession": true
    }
],
"configuration": {
    "_comment": "Configuration for Node",
    "cleanUpCycle": 2000,
    "timeout": 30000,
    "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
    "port": 5568,
    "hubHost": "MyNetworkIpWasHere",
    "register": true,
    "hubPort": 4445,
    "maxSessions": 5
    }   
}

テストを起動する Java:

DesiredCapabilities capabilities = DesiredCapabilities.safari();
capabilities.setPlatform(Platform.MAC);
capabilities.setBrowserName("safari");
capabilities.setVersion("9");

webDriver = new RemoteWebDriver(new URL("http://myipwashere:4445/wd/hub"), capabilities);

編集:私のグリッドには 5 つのサファリ ノードがあり、どれも使用されていません。

私は何かを見落としているに違いありません。どんな助けでも大歓迎です!

前もって感謝します。

4

1 に答える 1