Upload files
Related
Download files
Related
Select options from a dropdown
Pick an option from a dropdown during a test. The approach depends on whether the element is a native<select> or a custom menu.
Native <select>
- Add a Select step and describe the element (e.g. “The country select”).
- Click Find using description to populate the options list.
- Choose an option by label, value, or index.
Custom dropdowns
For React/Vue component libraries (Headless UI, Radix, Material UI, shadcn, etc.), use two Click steps:- Click on the dropdown trigger (e.g. “The country dropdown”).
- Click on the desired option (e.g. “USA inside the country dropdown”).
Related
Record and validate network requests
Use network steps to verify your UI sends the right data to the backend, or that the backend returns what you expect.Wait for a single request
-
Add a Register request listener step: provide a URL regex and a key (e.g.
CHECKOUT_REQUEST). - Trigger the request (submit a form, click a button, etc.).
-
Add an Await listener step with the same key. Save the result to an
environment variable (e.g.
RESPONSE). The step fails if no matching request completes within the timeout. -
Add a JavaScript step to validate:
Record multiple requests
-
Add a Record requests step: provide a URL regex and a key (e.g.
ANALYTICS_EVENTS). - Trigger the requests (navigate, click, fill forms, etc.).
-
Add a Get recorded requests step with the same key. Save the array to an
environment variable (e.g.
REQUESTS). -
Validate in a JavaScript step:
Requests that didn’t complete before Get recorded requests ran are still
included in the array, without a
response field.