Continue reading »
Selenium – push my buttons
- By Robert Smart, Senior Java Developer
- Developer
- On August 10, 2010
Or Selenium - everything is obvious in retrospect.
I spent some of my 20% time trying to figure out why simulating typing or pushing keys in selenium is such a pain for us and has been for so long.
Here is what I have found out:
Finding 1: Javascript events are first class citizens in Firefox and cordoned off in IE
In Firefox if you fire a keyboard keypress event at a textfield, Firefox will obligingly type the appropriate letter in that field. And then fire any handlers related to the keyPressEvent.
IE

