Skip to content

Step Actions

The 3 core step actions used to write ZeniTest tests.

Every test is built using three straightforward actions:


Opens a webpage or URL.

- navigate: /
- navigate: /login
- navigate: /settings
- navigate: https://example.com/pricing

Tells ZeniTest what to do on the screen in plain language.

- act: Type 'john@example.com' into the Email input field
- act: Type '${secret.PASSWORD}' into the Password input field
- act: Click on the 'Sign In' button
- act: Tap the 'Add to Cart' button
- act: Tap the Shopping Cart icon
- act: Select 'Price: Low to High' from dropdown
- act: Check the 'I agree to Terms' checkbox
- act: Scroll down to product reviews

Checks that an element, text, or page state is displayed as expected.

- validate: Verify 'Welcome back, John' is visible
- validate: Cart badge shows '1'
- validate: 'Order Placed Successfully!' message is displayed
- validate: Verify the 'Checkout' button is enabled

  1. Use visible text: Write the exact words you see on the button, link, or input label (e.g. Click 'Submit', Type into 'First Name').
  2. Keep each step focused: Do one action per act line (e.g. type text first, then click button on the next line).
  3. Validate key milestones: Add a validate step after important transitions (like form submissions or page changes).