Open chenglou opened 11 years ago
yo @petehunt, key input on form elements doesn't actually work lol.
The problem is that faking a click on the input
doesn't actually focus it, so subsequent key presses are really sent against nothing. This patch fixes this but actually introduces two problems:
click input1 -> press a -> click input2 -> press b
will actually result in huxley inputting ab
on input1
, leaving input2
alone. input2
's actually focused briefly thanks to the above patch, but somehow the b
key press still ends up on input1
. I suspect this has to do with KeyTestStep
, will check further.Alright, the above change fixes the bug 2. There are some KEY_ID
s lying around but they don't seem to do anything, so I replaced the ones concerning the patch. Didn't touch the rest.
Still, what about problem 1?
Are you sure this is an issue? I just added an example which indicates that it works.
That's really weird, I just clone the new version and installed it; doesn't work. (Selenium 2.35.0)
By the way, if you use ff 23 selenium will crash on < 2.35.0. This has been fixed since.
Please don't merge yet. This only partially fix the problem, more discussion coming up.