简体   繁体   中英

Capybara Selenium Chrome opens About Google Chrome

I have an issue with testing in Chrome. When I run the test it opens the chrome://settings/help page in a new tab. This causes my tests to fail as it can't find the buttons it should click on. I was debugging in Chrome in normal mode when I saw what happend.

Can I prevent this from happening? Or can I keep the tab where I'm testing in focussed in some way?

I ran into the same issue this morning. All our tests were failing because chrome://settings/help was automatically opened when we ran our selenium tests.

This behaviour did not happen when we used Chrome 61, and suddenly appeared when it got updated to Chrome 62.

In order to fix that we had to update the chromedriver binary to the latest version. You can find the drivers on here https://chromedriver.storage.googleapis.com/index.html

Our tests are now running normally again.

To add to Germain's comment, since I had a hard time remembering how to update the chromedriver -- I'm on a mac and originally installed it using brew, so now I had to do a 'brew upgrade chromedriver'. Also probably a good idea to restart spring if you're using that for your tests.

if anyone using this chromedriver-helper . Then update the chromedriver as mentioned here . I updated to 2.33 and error is solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM