WebDriverException: Error forwarding the new session cannot find : {platform=WINDOWS, browserName=FIREFOX, version=3.6}

后端 未结 6 1699
轮回少年
轮回少年 2021-01-18 09:55

I am new to Selenium Web driver as well as Grid 2.

I am trying to run a test case but it gives me an exception

Exception in thread \"main\" o

6条回答
  •  逝去的感伤
    2021-01-18 10:38

    It is probably just what it says: the hub/selenium can not find a match for the requested capabilities.

    I had this issue, and the error a got was (after formatting):

    java.lang.RuntimeException : org.openqa.selenium.WebDriverException : Error forwarding the new session cannot find : Capabilities[{
            proxy = {
                proxyAutoconfigUrl = null,
                socksUsername = null,
                socksPassword = null,
                autodetect = false,
                httpProxy = xxxxxxxxxxxx.com : 8080,
                proxyType = MANUAL,
                noProxy = xxxxxxxxxxxxx.net,
                ftpProxy = null,
                hCode = 1273131486,
                socksProxy = null,
                class = org.openqa.selenium.Proxy,
                sslProxy = xxxxxxxxxxxxxx.com : 8080
            },
            loggingPrefs = org.openqa.selenium.logging.LoggingPreferences @ 3564e4e9,
            browserName = MicrosoftEdge,
            type = regular,
            version = ,
            platform = ANY
        }
    ]
    

    Turns out that my co-workers had added a new parameter to the capabilities ("type"), and I had not updated my .json file that configures my Selenium node.

提交回复
热议问题