Jen Bandelin
Jen Bandelin

Reputation: 193

Selenium chromedriver crashes on some test runs

I have a set of python Selenium tests that run on chromedriver, and I've found that certain tests will fail occasionally because chromedriver crashes.

If chromedriver crashes during one of my tests it's almost always at the same spot in that test, but I've looked at the tests and there doesn't seem to be anything that would cause the crash. Often it's just a link click that seems to cause it.

I can run the same test twice and one time it will pass, the other time it will fail because chromedriver crashes.

I'm running the latest version of the selenium standalone server (2.18.0), Chrome version 17 and python version 2.7.1.

Does anyone know why this might be happening?

Thanks in advance!

Upvotes: 2

Views: 2773

Answers (2)

buddy
buddy

Reputation: 183

Or you can try to move the mouse pointer to 0,0 coordinates. Because click event is not as reliable as the one in firefox.

Upvotes: 0

JunkTester
JunkTester

Reputation: 11

What often happens in chromedriver is that when an element is not in the visible region (for example if there vertical scroll bars and the web element is not in the region) the driver will throw Element not clickable error, which is essentially saying that the element you are trying to click is not currently visible to the user although it is present in the DOM. Ie and FF do not has this issue because they auto scroll to the focused web element.

Upvotes: 1

Related Questions