Send Keys

<< Click to Display Table of Contents >>

Navigation:  Actions > Web Automation >

Send Keys

The Send Keys action types text or presses keyboard keys in the browser. It can type regular text, press special keys like Enter or Tab, and even use keyboard combinations.

 

When to use this action:

Filling out login forms and search fields

Navigating through form fields with Tab key

Submitting forms with Enter key

Using keyboard shortcuts (Ctrl+A, Ctrl+C, etc.)

Typing in fields that don't work well with Set Form Field Value

Simulating human-like typing for sites that detect automation

 

WA_SendKeys

 

Browser

Select which browser to send keys to

 

Locate element by

Locate by: Choose how to find the element (see Element Selection guide)

Select Element: Click to interactively choose an element

You can also use "Current Focus" to type in the currently active element

 

Key Stroke

Enter the text to type or keys to press

Regular text is typed as-is

Special keys must be wrapped in curly braces: {Enter}, {Tab}, etc.

Mix text and special keys: "Hello{Enter}World{Tab}"

 

Insert a key

Click to see a menu of special keys you can insert

Categories include:

Common keys: {Backspace}, {Delete}, {Enter}, {Escape}, {Tab}, {Space}

Navigation keys: {Home}, {End}, {PageUp}, {PageDown}, {ArrowUp}, {ArrowDown}, {ArrowLeft}, {ArrowRight}

Function keys: {F1} through {F12}

Modifier keys: {Control}, {Alt}, {Shift}, {Meta}

Numpad keys: {Numpad0} through {Numpad9}

 

Delay (milliseconds)

Time to wait between each keystroke

0 = type as fast as possible

100-200 = more human-like typing speed

Useful for fields that process input as you type

 

 

note Related Topics

Start Browser

Close Browser

Navigate

Mouse Click / Hover / Focus

Click Download Link

Get Element Property

Get Page Details

Set Form Field Value

Take Screenshot

Execute Javascript