Fehler mit der Weiterleitung der neuen session: Selenium Grid 2

Habe ich die Letzte genommen Selenium Server die 2.45.0 von hier. Folgte die Dokumentation und angefangen die Nabe mit dem folgenden Befehl

java -jar selenium-server-standalone-2.45.0.jar -role hub -hubConfig HubConfigFile.json

Und die JSon Inhalt der Datei ist:

{
  "host": 10.5.0.21,
  "port": 4444,
  "newSessionWaitTimeout": -1,
  "servlets" : [],
  "prioritizer": null,
  "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
  "throwOnCapabilityNotPresent": true,
  "nodePolling": 5000,
  "cleanUpCycle": 5000,
  "timeout": 300000,
  "browserTimeout": 0,
  "maxSession": 5,
  "jettyMaxThreads":-1
}

Und nur Node mit

java -jar selenium-server-standalone-2.45.0.jar -role node -nodeConfig DefaultNode.json

{
  "capabilities":
      [
        {
          "browserName": "*firefox",
          "maxInstances": 5,
          "seleniumProtocol": "Selenium"
        },
        {
          "browserName": "*googlechrome",
          "maxInstances": 5,
          "seleniumProtocol": "Selenium"
        },
        {
          "browserName": "*iexplore",
          "maxInstances": 1,
          "seleniumProtocol": "Selenium"
        },
        {
          "browserName": "firefox",
          "maxInstances": 5,
          "seleniumProtocol": "WebDriver"
        },
        {
          "browserName": "chrome",
          "maxInstances": 5,
          "seleniumProtocol": "WebDriver"
        },
        {
          "browserName": "internet explorer",
          "maxInstances": 1,
          "seleniumProtocol": "WebDriver"
        }
      ],
  "configuration":
  {
    "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
    "maxSession": 5,
    "port": 5555,
    "host": 10.5.0.161,
    "register": true,
    "registerCycle": 5000,
    "hubPort": 4444,
    "hubHost": 10.5.0.21
  }
}

Bis hier sieht alles toll. Sehen Sie die screenshots von der Konsole nach der Registrierung hier

Und das problem, wenn ich versuche, kick-off-test mit:

DesiredCapabilities capabilities = DesiredCapabilities.InternetExplorer();
capabilities.SetCapability("browserName", "internet explorer");
capabilities.SetCapability("platform", "XP");
capabilities.SetCapability("version", "8.0");
//capabilities.SetCapability("seleniumProtocol", "WebDriver");

Driver = new RemoteWebDriver(new Uri("http://10.5.0.21:4444/wd/hub"), capabilities);

Und es wirft:

Eine Ausnahme des Typs " System.InvalidOperationException' ist in WebDriver.dll wurde aber nicht behandelt werden, in Benutzer-code

Zusätzliche Informationen: der Fehler mit der Weiterleitung der neuen session nicht finden können : Fähigkeiten [{browserName=internet explorer, version=8.0, Plattform=XP}]

Siehe screenshots screenshot 1 screenshot 2 screenshot 3

Ich muss sagen, die Dokumentation auf Selenium Grid ist sehr frustrierend. Ich habe den ganzen Tag versucht, herauszufinden, was falsch läuft.

Bin ich etwas fehlt?

sollte es nicht neue URL statt Uri???? nur eine Vermutung...
Nein, es ist Uri

InformationsquelleAutor Saifur | 2015-03-03

Schreibe einen Kommentar