Automate works best when you give it enough context to understand what you want and where to put it. The tips below cover both autonomous creation and guided creation.Documentation Index
Fetch the complete documentation index at: https://docs.qawolf.com/llms.txt
Use this file to discover all available pages before exploring further.
Autonomous creation
Write a specific prompt
Vague prompts produce unreliable results. A prompt like “Create a test for the rate quote flow” gives Automate very little to work with. A stronger prompt includes:- Where to start (URL or a reference to a login helper)
- What the user does, step by step
- What a successful outcome looks like
- Anything specific you want asserted
Include assertions explicitly
If there’s something specific you need verified, say so. Automate won’t always infer what matters to you — telling it what to assert produces more useful tests.Guided creation
Start prompts with “Insert code to”
When adding code at a specific point in a test, beginning your prompt with “Insert code to” helps Automate understand it should add rather than replace.Control where code is inserted
Automate inserts code relative to the current cursor position. If code ends up in the wrong place:- Click on the line where you want the code inserted before prompting
- Or tell it explicitly: “Insert code on line 42 to…”
Hover before you prompt for elements
When targeting an element inside a container — for example, the first link within a specific panel — hover over the container for a second, then click the element. This gives Automate locators for both, and you can ask it to chain them:Trigger actions before prompting
For interactions that produce a result (a download, a new page, a modal), trigger the action yourself first and let it complete. Then tell Automate what happened. This helps it understand the outcome, not just the selector. Example:- Click the download button and wait for the download to start
- Then prompt: “Click the download button”
Use descriptive language for context
A few phrases that help Automate understand what it’s working with:- “in the row” — when an element is inside a table row
- “file” — for file-related actions like clicking download or handling file inputs