Simulate TAB keypress event in Selenium RC Simulate TAB keypress event in Selenium RC selenium selenium

Simulate TAB keypress event in Selenium RC


selenium.keyPressNative(java.awt.event.KeyEvent.VK_TAB + ""); 

I don't use the Java API, but this post from google groups suggests it is your solution. I can't imagine that "9" is different from "09" in your question, but give it a try?


Try the official TAB char: \t or \u0009


Some functions may used Onblur. It will trigger the function when the field lose the key focus. here we can use fireEvent with "blur" or "focus" command as follows:command: fireEventtarget: id=your_field_identificationvalue: blur

Reference: http://qaselenium.blogspot.com/2011/01/how-to-triger-tab-key-in-selenium.html