New Selenese Command – sendKeys

I have just added a new command sendKeys to Selenium IDE. I believe that this is the way forward and it should fix the problem you have been facing with the typeKeys command (issue 3861). Here is the important section from the reference.

Command: sendKeys | locator | text

*Experimental* Simulates keys pressed as though you typed the value key-by-key on the specified element.

This simulates a real user typing every character in the specified string; it is also bound by the limitations of a real user, like not being able to type into a invisible or read only elements. This is useful for dynamic UI widgets (like auto-completing combo boxes) that require explicit key events.

Unlike the simple type command, which forces the specified value into the page directly, this command will not replace the existing content. If you want to replace the existing contents, you need to use the simple type command to set the value of the field to empty string to clear the field and then the sendKeys command to send the keystrokes for what you want to type.

I have currently marked the sendKeys command as experimental. I think that the sendKeys command will change a bit to allow you to specify the pressing of control keys like shift and control. I want to get some feedback from you before I finalise it.

Migrations plans

I am planning to update my Selenium Expert plugin soon and give it the ability to convert  all typeKeys commands to sendKeys commands. This should make the migration of existing scripts to the commands a one click thing.

Another solution would be to simply change the existing typeKeys command instead of introducing the sendKeys command. Since, the two implementations are similar but not the same, some existing tests would break. Introducing a new command would allow you to experiment with it and provide us with your feedback. Tell us what you think about the sendKeys command. Tell us if you want to have two commands or if you want to have just typeKeys with the new Selenium 2 implementation.

Posted in Selenium IDE | Tagged , , , , , , , , | 17 Comments

Insanely Productive and Incredibly Satisfying

Just yesterday I posted that WebDriver Playback is coming to Selenium IDE and that I had managed to get my first command successfully executed via WebDriver using Selenium IDE!!! After an insanely productive day at Selenium Conference 2012, I am … Continue reading

Posted in Selenium IDE | Tagged , , , , , , , , | 6 Comments

WebDriver Playback is coming to Selenium IDE

I am really excited and I could not wait to share this news with you all! Back in November last year, when Dave Hunt and I became the new owners of the Selenium IDE, we got together and created a … Continue reading

Posted in Selenium IDE | Tagged , , , , , , , , | 9 Comments

My Selenium IDE Plugins Updated for Firefox 11

I have uploaded new versions of all my Selenium IDE plugins on Firefox Addons website. They should now work with Firefox 11 and Selenium IDE v1.7.0. The updates should be sent to you automatically when Mozilla approves them. You can … Continue reading

Posted in Selenium IDE Plug-ins | Tagged , , , , , , , , , , , , , , , , , , , | 19 Comments

Screenshot on Fail v1.0 for Selenium IDE Now Available

Capturing a screen shot on error or failure is a useful ability that has been available to Selenium users via programming languages. Selenium IDE users did not have an easy option so far. My Screenshot on Fail plugin for Selenium … Continue reading

Posted in Selenium IDE Plug-ins | Tagged , , , , , , , , , , , , | 18 Comments

My Selenium IDE Plugins Updated for Firefox 10

I have uploaded new versions of all my Selenium IDE plugins on Firefox Addons website. They should now work with Firefox 10 and Selenium IDE v1.6.0. The updates should be sent to you automatically when Mozilla approves them. You can … Continue reading

Posted in Selenium IDE Plug-ins | Tagged , , , , , , , , , , , , , , , , , , | 9 Comments

Selenium IDE v1.6.0 Released and Includes Firefox 10 Support

Last week Selenium IDE v1.6.0 was released and is available for download from the usual download site. Other than the Firefox 10 support, it has the following enhancements and fixes:- Keyboard shortcuts to launch Selenium IDE You can use Ctrl+Alt+S … Continue reading

Posted in Selenium IDE | Tagged , , , , , , , | Leave a comment

Page Coverage v1.0 for Selenium IDE Now Available

A few days back, I posted how Page Coverage is a useful technique to determine if any test cases have been missed and to keep managers happy. Page Coverage plugin for Selenium IDE that get you the page coverage of … Continue reading

Posted in Selenium IDE Plug-ins | Tagged , , , , , , , , , , , | 8 Comments

Improving the Quality of Your Tests Through Page Coverage

Programmers often write tests and have a lot of powerful frameworks and tools at their disposal. One technique, Code coverage, provides you with the actual lines of code that are executed when the tests are run. This information is usually condensed … Continue reading

Posted in Selenium Tips | Tagged , , , , , , , | 1 Comment

My Selenium IDE Plugins Updated for Firefox 9

I have uploaded new versions of all my Selenium IDE plugins on Firefox Addons website. They should now work with Firefox 9 and Selenium IDE v1.5.0. The updates should be sent to you automatically when Mozilla approves them. You can … Continue reading

Posted in Selenium IDE Plug-ins | Tagged , , , , , , , , , , , , , , , , , | 4 Comments