Key Press « selenium « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » selenium » Key Press 

1. Simulate TAB keypress event in Selenium RC    stackoverflow.com

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");
I've tried 3 alternatives to get the tab working:
selenium.keyPress(input, ...

2. selenium keyPress    stackoverflow.com

i m wondering how to use selenium's keyPress function to key in a string, it's easy to key a single character as:

selenium.keyPress("id=textbox", "\\119") (which  is character 'w');
but how can i ...

3. selenium rc cannot key press dot '.'    stackoverflow.com

i know it's a selenium bug, but not sure if it's fixed yet. i tried to type in sth like '99.99', but the dot wont' show up. is there any way ...

4. how to key press 2 keys in selenium    stackoverflow.com

say my short cut is shift + r how to keypress 2 keys? in selenium rc java

5. Selenium 2 & keypress    stackoverflow.com

I just upgraded to Selenium 2 and having trouble simulating a keypress in firefox (maybe other browsers?). First of all, the new API, using IWebDrivers, does not provide a keypress funktion. ...

6. Selenium-IDE: How to simulate non-printable keys (ENTER, ESC, Backspace)?    stackoverflow.com

What is the exact HTML code to simulate ENTER, ESC, BACKSPACE and DOWN in Selenium IDE 1.3.0? typeKeys didn't work nor did this:

<tr>
    <td>keyDown</td>
    <td>id=zc_0_4_3-real</td>
  ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.