All Downloads are FREE. Search and download functionalities are using the official Maven repository.

desc.SendKeys.txt Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
Types the given text into text field identified by a locator without clearing the text field.
This is particularly used for file upload fields since `Input Text` keyword will not work with file uploads.

Support for simulating pressing many keys in a 'cord', do this by prefixing text with {{cord=}}.
Multiple cords are separated by '|'.

*Cord Supported Special Texts:*
| NULL, CANCEL, HELP, BACK_SPACE, TAB, CLEAR, RETURN, ENTER, SHIFT, LEFT_SHIFT, CONTROL, LEFT_CONTROL
| ALT, LEFT_ALT, PAUSE, ESCAPE, SPACE, PAGE_UP, PAGE_DOWN, END, HOME, LEFT, ARROW_LEFT, UP, RROW_UP, RIGHT,
| ARROW_RIGHT, DOWN, ARROW_DOWN, INSERT, DELETE, SEMICOLON, EQUALS, NUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4
| NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, MULTIPLY, ADD, SEPARATOR, SUBTRACT, DECIMAL, DIVIDE, F1, F2, F3
| F4, F5, F6, F7, F8, F9, F10, F11, F12, META, COMMAND, ZENKAKU_HANKAKU

*Examples:*
| `Navigate To` | http://jspringbot.org/search.html |
| `Wait Till Element Visible` | id=artist_search |
| `Send Keys`  | id=artist_search | Log |
| `Delay`      | 1000 |
| `Send Keys`  | id=artist_search | cord=ARROW_DOWN|ARROW_DOWN|ARROW_DOWN|ARROW_DOWN |
| `Delay`      | 1000 |
| `Send Keys`  | id=artist_search | cord=ENTER |

=>

| Delay is useful above, since autocomplete may be slow.
| The example above is for navigating autocomplete by sending keys.
| The above inputs 'Log'
| Then goes down on the autocomplete menu 4 times, by pressing arrow down 4 times
| Then pressing enter key.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy