WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser

前端 未结 29 3442
旧巷少年郎
旧巷少年郎 2020-11-21 07:11

I am trying to launch chrome with an URL, the browser launches and it does nothing after that.

I am seeing the below error after 1 minute:

Unable to         


        
29条回答
  •  遇见更好的自我
    2020-11-21 07:38

    update capabilities in conf.js as

    exports.config = {
      seleniumAddress: 'http://localhost:4444/wd/hub',
      specs: ['todo-spec.js'],
      capabilities: {
        browserName: 'chrome',
        chromeOptions: {
          args: ['--disable-gpu', '--no-sandbox', '--disable-extensions', '--disable-dev-shm-usage']
        }
      },
    
    };
    

提交回复
热议问题