google-chromemodal-dialogwebdriver-io

How to avoid chrome external dialog in WebdriverIO testing


Chrome external protocol dialog

The first step of the e2e WebdriverIO test is to goto the login page. But the dialog stopped the test case from going further. I didn't find a way to either close the dialog using WebdriverIO or disable the dialog. Any one can help?


Solution

  • Try add this to your wdio.conf file

      "capabilities": [
        {
          ...
          "goog:chromeOptions": {
            "args": [
              "disable-infobars",
              "disable-popup-blocking",
              "disable-notifications"
            ]
          }
        }
      ]
    

    or check this link: wdio github issue