Every test is built using three straightforward actions:
1. navigate (Web only)
Section titled “1. navigate (Web only)”Opens a webpage or URL.
- navigate: /- navigate: /login- navigate: /settings- navigate: https://example.com/pricing2. act
Section titled “2. act”Tells ZeniTest what to do on the screen in plain language.
Typing Text
Section titled “Typing Text”- act: Type 'john@example.com' into the Email input field- act: Type '${secret.PASSWORD}' into the Password input fieldClicking & Tapping
Section titled “Clicking & Tapping”- act: Click on the 'Sign In' button- act: Tap the 'Add to Cart' button- act: Tap the Shopping Cart iconSelecting, Checking & Scrolling
Section titled “Selecting, Checking & Scrolling”- act: Select 'Price: Low to High' from dropdown- act: Check the 'I agree to Terms' checkbox- act: Scroll down to product reviews3. validate
Section titled “3. validate”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 enabledTips for Writing Steps
Section titled “Tips for Writing Steps”- Use visible text: Write the exact words you see on the button, link, or input label (e.g.
Click 'Submit',Type into 'First Name'). - Keep each step focused: Do one action per
actline (e.g. type text first, then click button on the next line). - Validate key milestones: Add a
validatestep after important transitions (like form submissions or page changes).