Skip to content

Latest commit

 

History

History
205 lines (139 loc) · 3.31 KB

actions.rst

File metadata and controls

205 lines (139 loc) · 3.31 KB

Actions

Actions are operations that can be performed to get the browser into the desired state.

Syntax

An action takes the form of a verb followed optionally an argument, a keyword and an additional argument.

The verb is always required. Whether arguments and keywords are optional is dependent on the verb.

Verbs

Click

Click on an element.

Arguments

typed

identifier <identifier> </types> An identifier </identifiers>.

Examples

includes/examples/actions/click.yml

Set

Set the value of an element. Most applicable to form field elements.

Arguments

typed

identifier <identifier> </types> An identifier </identifiers>.
value <string> </types> A string.

Examples

includes/examples/actions/set.yml

Submit

Submits a form.

Arguments

typed

identifier <identifier> </types> An identifier </identifiers>.

Examples

includes/examples/actions/submit.yml

Wait

Wait for a specified number of seconds.

Arguments

typed

number-of-seconds <positive-integer> </types> An integer greater than zero.

Examples

includes/examples/actions/wait.yml

Wait-for

Wait for an element to be rendered. Waits for up to 30 seconds.

Arguments

typed

identifier <identifier> </types> An identifier </identifiers>.

Examples

includes/examples/actions/wait-for.yml

Reload

Reload the current page.

Forward

Move forward one item in the current session history.

Back

Move back one item in the current session history.

Example List