Chrome Driver 74.0.3729.6 issues (Actions class, SendKeys, Clear)

323 views
Skip to first unread message

vijaya.aut...@gmail.com

unread,
May 7, 2019, 2:56:02 AM5/7/19
to ChromeDriver Users
Hi I am running Selenium tests on Chrome browser 74 using Selenium c# with the below packages. My website application under test is based on React.

<package id="Selenium.Support" version="3.14.0" targetFramework="net45" />
<package id="Selenium.WebDriver" version="3.14.0" targetFramework="net45" />
<package id="Selenium.WebDriver.ChromeDriver" version="74.0.3729.6" targetFramework="net45" />


Since this upgrade I am seeing that lot of tests fail which previously worked on ChromeDriver 2.46

1) Simple things like element.SendKeys("ADV9")
I expect the text element to be populated with ADV9 but instead it is sending ADV(

It is taking Shift characters.

2) element.Clear(); used to work previously but now it does not clear. I have to write additional code for this.

textElement.Click();
Actions act = new Actions(Browser);
//clear existing text
act.Click(textElement).KeyDown(Keys.Control).SendKeys("a").KeyUp(Keys.Control).SendKeys(Keys.Backspace).Build().Perform();
act.Click(textElement).SendKeys(text).SendKeys(Keys.Tab).Build().Perform();

3) Actions class functions are not working.
Example MoveToElement, click are not doing anything on the browser.

Sample Code:
actions.MoveToElement(element).SendKeys(productCode).Build().Perform();

Above 3 are very crucial for Selenium tests and this is making me feel that Selenium is pretty much not useful anymore because these basic actions are very flaky and making my tests brittle.

Looks like I have to make lot of workarounds for simple things.

Could you please help.

vijaya.aut...@gmail.com

unread,
May 7, 2019, 3:27:27 AM5/7/19
to ChromeDriver Users
I have also tried upgrading to but does not make any change.
<package id="Selenium.Support" version="3.141.0" targetFramework="net45" />
<package id="Selenium.WebDriver" version="3.141.0" targetFramework="net45" />

John Chen

unread,
May 8, 2019, 12:37:53 AM5/8/19
to vijaya.aut...@gmail.com, ChromeDriver Users
1) Simple things like element.SendKeys("ADV9") 
I haven't seen this type of issue before. If you could send some repro code, or ChromeDriver log file, we can take a look.

2) element.Clear(); used to work previously but now it does not clear.
This is usually caused by JavaScript code running on the page restoring the input after ChromeDriver clears it. ChromeDriver clears input by setting its value to an empty string. This sometimes confuses sophisticated JavaScript library that controls the input, as the input changed without any keyboard event. In these cases, your workaround is the best alternative.

3) Example MoveToElement, click are not doing anything on the browser.
Your code snippet doesn't include any click. MoveToElement isn't very useful unless you do some clicking afterwards.

vijaya.aut...@gmail.com

unread,
May 8, 2019, 10:39:49 PM5/8/19
to ChromeDriver Users
Reply all
Reply to author
Forward
0 new messages