Skip to content

Step Actions

Every step in your test uses one of three simple actions:

Opens a relative path or full URL.

- navigate: /
- navigate: /settings
- navigate: https://example.com/checkout

Performs an action using natural language.

- act: Type 'John' into the 'First Name' input field
- act: Type '${secret.MY_PASSWORD}' into 'Password'
- act: Click on the 'Login' button
- act: Click 'Submit'
- act: Select 'Price: Low to High' from dropdown
- act: Check 'Remember me' checkbox

Verifies page state visually or by text content.

- validate: Verify 'Welcome back' message appears
- validate: Verify shopping cart shows 2 items