Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

sendKeys does not set switch focus to element on windows when using ChromeDriver #440

Closed
lukeis opened this issue Mar 2, 2016 · 16 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 440

What steps will reproduce the problem?
1. Open any page with multiple text fields, i.e 
https://www.google.com/voice/
2. Input text to two text fields using sendKeys method

        // Go to Google Voice
        driver.get("https://www.google.com/voice/");

        // Login
        driver.findElement(By.name("Email")).sendKeys("username");
        driver.findElement(By.name("Passwd")).sendKeys("password");

What is the expected output? What do you see instead?
text typed in correct field but text is typed in field with focus

What version of the product are you using? On what operating system?
Seems to happen only on Windows 7 and Vista.  Using Chrome 5.0.365.0

Please provide any additional information below.
Workaround is to click the field to switch.

Reported by gketan on 2010-03-30 23:02:39

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by dharani@google.com on 2011-01-22 00:36:33

  • Labels added: OpSys-Windows

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This is the only blocker for us upgrading to b1. Adding the click() did not seem to
help (this is on WINXP + chrome)

Reported by binod80 on 2011-01-31 15:55:15

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I'm running ChromeDriver on Windows XP and I'm able to get around the issue with click().
I am having another problem as I noted on StackOverflow: http://stackoverflow.com/questions/4975731/how-to-call-javascript-from-chromewebdriver-and-internetexplorerwebdriver-when-th

Reported by jwbito on 2011-02-12 01:49:53

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This has regressed worst in beta.  Now the click doesn't even work as workaround.  Can
we fix this before next beta or 2.0 release?

Reported by gketan on 2011-03-08 04:29:28

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

With b2, I still have to click and hit the END key before I type. I found that the first
sendKeys fails, and if I either send a second sendKeys() or click+END, then it works.

Reported by binod80 on 2011-03-08 14:32:38

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 1315 has been merged into this issue.

Reported by dawagner on 2011-03-13 16:27:51

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 1413 has been merged into this issue.

Reported by dawagner on 2011-03-17 10:13:16

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

BTW, this persists with b3

I have been able to use the following workaround for now

sendKeys("");
sendKeys(myactualKeys);

Reported by binod80 on 2011-03-29 17:52:07

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I can confirm this is still happening with 2.0b3, Windows XP and Chrome 10.

Can anyone confirm this is due to the new Chrome driver is being developed?

http://code.google.com/p/selenium/issues/detail?id=427#c19

Reported by bravejolie on 2011-04-04 14:49:43

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Same issue with Chrome 12.

Reported by werner%beroux.com@gtempaccount.com on 2011-04-11 22:03:12

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Confirmed on 2.0b3, XP and Chrome 11. This would be a great fix.

Reported by zrlemley on 2011-05-16 18:07:34

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

The rewritten Chrome driver is available if you build from trunk. If someone wants to
re-test this with trunk to confirm that it's fixed, that'd be great.

Reported by jari.bakken on 2011-05-18 23:43:55

  • Labels added: Component-WebDriver, Browser-Chrome

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

The issue has been fixed long ago.

Reported by barancev on 2011-10-03 05:09:08

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by callwayAutomation on 2011-10-06 10:10:13


- _Attachment: [Lingoes.exe](https://storage.googleapis.com/google-code-attachments/selenium/issue-440/comment-14/Lingoes.exe)_

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by jari.bakken on 2015-02-26 23:01:19

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 17:48:58

  • Labels added: Restrict-AddIssueComment-Commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant