Send Keys

Sends all the characters from Keys to the specified element. When the workflow is run using Google Chrome extension, the characters are sent one by one simulating the user actions. For instance, if we want to get the popup suggestions, the validations to work or the username, password fields to behave as expected, it is advisable to use SendKeys.

Rinkt SendKeys Designer

Designer Properties#

See Web Event Main Properties.

  1. Keys The Keys to sent to the web element. If we want to send just characters, we just type them under "". We use "" because we can have expressions like concatenations, or we can call functions like Replace for instance. In order to use raw keys, like Control, we need to group them under {Keys....}. For instance, if we want to send Ctrl + S the expression should look like: {Keys.Control + s + Keys.Control} which is translated as:

    • { Start of raw key sequence
    • Keys.Control Send key down with key Control
    • + keys separator
    • S Send S key press
    • Keys.Control Send key up with key Control
    • } Close Raw keys sequence.

    If we wanted to send another sequence, we just add that sequence after the first one like {Keys.Control + s + Keys.Control}{Keys.Control + s + Keys.Control} Test. In this case, we will send CTRL + S twice followed by space and 'Test'

    To escape a {, } or +, just use {{, }} or ++. To simulate Return key we can just use the new line(\n) character which can be entered by pressing Enter key in the expression editor.

    Please check the Virtual keys for all the possible keys that can be used in combination with the keyword Keys.

Properties#

SendKeys properties

Web Event Main Properties#

See Designer Properties above.

General Properties#

See Web Event General Properties.

Misc#

See Misc.

Out Error#

See Out Error.

Out Properties#

See Web Event Out Properties.

Web Event Advanced Properties#

See Web Event Advanced Properties.

Virtual Keys#

The following keys can be used to send raw keys to a control. They just need to be prefixed by Keys keyword and placed under {} as described above in Keyboard Properties.

NumberPad0
NumberPad1
NumberPad2
NumberPad3
NumberPad4
NumberPad5
NumberPad6
NumberPad7
NumberPad8
NumberPad9
Equal
Semicolon
Backspace
Space
Tab
Left
Up
Right
Down
Return
Shift
Control
Alt

When running with "Chrome/Edge extension", the following extra keys can be used

Backquote
Minus
KeyQ
KeyW
KeyE
KeyR
KeyT
KeyY
KeyU
KeyI
KeyO
KeyP
BracketLeft
BracketRight
Backslash
KeyA
KeyS
KeyD
KeyF
KeyG
KeyH
KeyJ
KeyK
KeyL
Quote
Enter
KeyZ
KeyX
KeyC
KeyV
KeyB
KeyN
KeyM
Comma
Period
Slash
Shift
ControlLeft
AltLeft
MetaLeft
MetaRight
AltRight
ArrowLeft
ArrowDown
ArrowUp
ArrowRight

For "Web Driver", the following extra keys can be used

RightAlt
RightControl
RightShift
Multiply
Add
Separator
Subtract
Divide
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
Decimal /*Decimal point*/
Insert
Cancel
Help
Clear
Delete
Pause
PageUp
PageDown
End
Home
Escape
Command
Meta

Example#

Search for a stock index using Google

In this example, we use send keys to search for a stock index in Google.