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

后端 未结 8 1773
梦谈多话
梦谈多话 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:26

    This is how it can be done in Behat with Mink: #behat #mink

      Behat\MinkExtension:
        base_url: "your_site_url"
        browser_name: 'chrome'
        goutte: ~
        javascript_session: selenium2
        selenium2:
          wd_host: http://127.0.0.1:4444/wd/hub
          capabilities:
            browser: chrome
            extra_capabilities:
              chromeOptions:
                args: ['--headless', '--disable-gpu']
                w3c: false
    

提交回复
热议问题