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

Command "typeKeys" does not support type key "y" #483

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

Command "typeKeys" does not support type key "y" #483

lukeis opened this issue Mar 2, 2016 · 20 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 483

What steps will reproduce the problem?
1.Open selenium IDE and record user actions.
2.Open "www.google.com"
3.Tye "yellow" in search box and search it in google.
4.Change the "type" command to "typeKeys" manually.
5.Replay the script.

What is the expected output? What do you see instead?
Expect result: User can find the result with key word "yellow".
Actual reslut: User can find the reslut with key word "low".

What version of the product are you using? On what operating system?
Selenium IDE/Core 1.03, Remote control 2.0a2 are all have this issue.
OS: windows xp sp3. firefox3.6.3

Please provide any additional information below.
When use "typeKeys" to type "y", it will active "file" menu in firefox.
Other characters are all OK.

Reported by robin.von on 2010-04-23 08:20:43

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

FYI: This was previously reported in http://jira.openqa.org/browse/SIDE-309

I believe full stops are also not output using typeKeys in Selenium IDE.

One workaround is to use Selenium RC or Selenium 2 instead of Selenium IDE to run your

tests.

Reported by dave.hunt on 2010-04-23 13:59:02

  • Labels added: ide

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

We've got this working nicely in Se2, and we're working on extracting shared JS for

things like this.

Reported by simon.m.stewart on 2010-04-23 15:02:39

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I have updated my selenium remote control lib to 2.0a4. but this issue still exists.
my code like this:
selenium.typeKeys("id=username", "lyDam");
then only got "lam" in the textfield.
Can anybody tell me which file should be updated to fix this bug?

Reported by robin.von on 2010-04-26 02:02:23

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Do you use the WebDriverBackedSelenium class to instanciate your "selenium" object ?

Reported by jeremy.herault on 2010-04-27 14:25:13

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I do not use WebDriverBackedSelenium now.
Does this issue only be fixed in WebDriverBackedSelenium? and doesn't fixed in 
client-server mode?

Reported by robin.von on 2010-04-28 01:38:34

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This issue is fixed when you use the WebDriverBackedSelenium class because you use 
WebDriver as a backend instead of Selenium Core. The merge with WebDriver for the Sel-
IDE side is in progress. But I'll see what happens in your case but it's probably in

Selenium Core where the problem occurs and not in Selenium IDE. The file concerned
is 
htmlutils.js (function triggerKeyEvent).

Reported by jeremy.herault on 2010-06-06 14:03:05

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Not a perfect fix, but definitely an improvement from the current situation.

For more details see http://reallysimplethings.wordpress.com/2010/08/27/the-selenium-files-misbehaving-typekeys/

Reported by Samit.Badle on 2010-09-21 12:05:49


- _Attachment: [patch.txt](https://storage.googleapis.com/google-code-attachments/selenium/issue-483/comment-7/patch.txt)_

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Marking as started as there is a patch attached.

Reported by antlong on 2011-01-24 18:27:37

  • Status changed: Started
  • Labels added: Component-IDE
  • Labels removed: ide

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This should really be solved by making use of the keys atom.

Reported by simon.m.stewart on 2011-01-26 10:01:36

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

So I'm updating the atoms to make sure that we cover some of the common use cases that
people are using with sendKeys (such as using '\13' for return and so on)

Reported by simon.m.stewart on 2011-01-26 10:46:29

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 1283 has been merged into this issue.

Reported by Samit.Badle on 2011-02-08 20:40:44

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 1469 has been merged into this issue.

Reported by Samit.Badle on 2011-03-28 17:09:28

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I've had a fix for this ready for some time, but haven't committed for two reasons:

1) Too many users expect the current (broken) behaviour
2) The focus of development is on Selenium 2 and the WebDriver APIs.

The former is the strongest reason why this going to be marked as WontFix.

Reported by simon.m.stewart on 2011-07-06 13:01:36

  • Status changed: WontFix

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 3454 has been merged into this issue.

Reported by dave.hunt on 2012-03-01 14:34:08

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Simon: What could make you reconsider applying your fix? It seems pretty broken to me
that users can't type certain characters via Selenium IDE.

Reported by dave.hunt on 2012-03-01 16:02:27

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

My fix relied on the atoms, which do a far better job of simulating user input than
type or typekeys. Fixing this issue using those would break an awful lot of tests that
expect RC's current awful implementation.

A better solution would be to move the IDE tests to use webdriver by default.

Reported by simon.m.stewart on 2012-03-01 18:58:53

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

And that move to make IDE use webdriver will be easier now that webdriver js is up to
date and works nicely.

Reported by simon.m.stewart on 2012-03-01 18:59:29

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I see. This particular issue is regarding not being able to type 'y' in IDE, and I'm
pretty sure that RC is not affected by this. I suspect you're saying that your atoms
fix will affect both products in a major way. With that, is there any way we can limit
a fix to IDE without going the whole WebDriver route just yet? I would love to see
a short-term fix if possible, but I'm also very keen to discuss the integration of
IDE and WebDriver.

Reported by dave.hunt on 2012-03-01 21:59:17

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

IDE uses the same Selenium Core as RC does, which is why RC is affected too (it also
has trouble with brackets). Changing things so IDE works also changes things so that
RC's behaviour changes.

Reported by simon.m.stewart on 2012-03-02 14:51:57

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

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

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 3, 2016
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