webdriver (version 1.0.5)

key: Special keys, so that we can refer to them with an easier syntax

Description

Special keys, so that we can refer to them with an easier syntax

Usage

key

Arguments

Format

An object of class list of length 51.

Examples

Run this code
# NOT RUN {
el$sendKeys("xyz")
el$sendKeys("x", "y", "z")
el$sendKeys("username", key$enter, "password", key$enter)

## Sending CTRL+A
el$sendKeys(key$control, "a")

## Note that modifier keys (control, alt, shift, meta) are sticky,
## they remain in effect in the rest of the sendKeys() call. E.g.
## this sends CTRL+X and CTRL+S
el$sendKeys(key$control, "x", "s")

## You will need multiple calls to release control and send CTRL+X S
el$sendKeys(key$control, "x")
el$sendKeys("s")
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace