Learn R Programming

selenium (version 0.1.4)

actions_press: Press or release a key

Description

Key actions to be passed into actions_stream(). actions_press() represents pressing a key on the keyboard, while actions_release() represents releasing a key.

Usage

actions_press(key)

actions_release(key)

Value

A selenium_action object.

Arguments

key

The key to press: a string consisting of a single character. Use the keys object to use special keys (e.g. Ctrl).

Examples

Run this code
actions_stream(
  actions_press("a"),
  actions_release("a"),
  actions_press(keys$enter),
  actions_release(keys$enter)
)

Run the code above in your browser using DataLab