Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium Webdriver click and send keys etc dont work on Google Chrome Version 78.0.3904.87

Tags:

Google chrome automatically updated to Version 78.0.3904.87 yesterday and i now seem to have a problem with Selenium Webdriver.

When i run my tests in Visual Studio, the click events seem to occur but the expected result on screen does not happen e.g. clicking a link passes through the code (link.Click) successfully with no failure but the link does not get clicked on screen.

When i run the same test in Debug mode and Step Into each section of code it works fine, its as if selenium is running too fast for the browser (i have an implicit wait built in but its irrelevant, the element is there its just not clicking properly). I'm also finding things like sendKeys does not populate the field though it passes through the code successfully, again fine when stepping into it in Debug mode.

I've tried updating my Chromedriver to the version for V78 but this has made no difference

Similar problem here but my issue is not restricted to pdfs only Chromedriver 78 cant find element in pdf

like image 857
m_finn Avatar asked Nov 02 '19 13:11

m_finn


People also ask

Which version of Selenium is compatible with Chrome?

ChromeDriver is only compatible with Chrome version 12.0. 712.0 or newer. If you need to test an older version of Chrome, use Selenium RC and a Selenium-backed WebDriver instance.

Does Selenium WebDriver work with Chrome?

Through WebDriver, Selenium supports all major browsers on the market such as Chrome/Chromium, Firefox, Internet Explorer, Edge, Opera, and Safari.


2 Answers

My team is running into the same issue. The issue seems to be the time between our WebDriverWaits and our Clicks -- the waits seem to be passing through instantaneously in cases they should not and then any Click element call (or action) hovers over what we want to click on but doesn't actually click.

like image 158
Brian von Kuster Avatar answered Nov 14 '22 22:11

Brian von Kuster


I finally got to the bottom of this with our setup and it turned out to be the --enable-automation flag that seemed to be causing page flickering on page load. After adding excludeSwitches: ['enable-automation'] to my config it has resolved the issue.

like image 25
Simon Avatar answered Nov 14 '22 21:11

Simon