How to turn off w3c in chromedriver to address the error unknown command: Cannot call non W3C standard command while in W3C

后端 未结 8 1766
梦谈多话
梦谈多话 2020-11-27 05:41

With version 75 of Chrome just released, our tests no longer run properly. They give the stacktrace pasted below. We are using ruby on rails v. 5.1.6.2 with rspec, seleniu

8条回答
  •  醉梦人生
    2020-11-27 06:34

    I'm facing the same issue.

    I tried to disable using capabilities = Selenium::WebDriver::Remote::Capabilities.chrome({ "chromeOptions" => {'w3c' => false} }) but it didn't work.

    Then I changed to capabilities = { "chromeOptions" => {'w3c' => false} } and now it works.

    Maybe it can help you.

提交回复
热议问题