Until a few weeks ago I had my Protractor e2e tests working with the Chrome browser.
However, since the last Chrome update 69.0.3497.100 (64-bit) running the tests in non-headless mode don't work any more and I get an error. If i run the tests in headless mode (via chromeOptions
in the protractor config file "--headless") all works fine.
The error i get in the windows command prompt is:
WebDriverError: unknown error: Chrome failed to start: crashed (unknown error: DevToolsActivePort file doesn't exist) (Driver info: chromedriver=2.41.578737......)
Chrome is always closed before I run the e2e tests.
I have done a webdriver-manager clean and after, a webdriver-manager update. I also manually installed chromedriver@latest via npm but still no luck.
My chromeOptions in the config file is
chromeOptions: {
args: ["--user-data-dir", "--disable-gpu", "--no-sandbox", '--disable-web-security']
},
On running the e2e tests, chrome launches properly, but the tab remains on the default new tab page. If in the config, I tel it to use FF, the pages change properly.
Can anyone help me with this issue?