Simulate TAB keypress event in Selenium RC

前端 未结 5 1108
滥情空心
滥情空心 2021-02-07 08:10

I need to simulate a tab keypress in Selenium RC, using the Java API.

I do this after having entered some text using:

selenium.type(input, \"mytext\");
<         


        
5条回答
  •  青春惊慌失措
    2021-02-07 08:47

    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?

提交回复
热议问题