Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to run cross-browser and real-device tests, debug sessions, and wire up CI on the TestMu AI cloud:
When It’s Used
- Text content: prices, labels, headings, counts, messages
- Visibility: “is the login button visible”, “are search results displayed”
- Color checks using color names: “has red background”, “blue text”
- Any content that appears visually on the page
Examples
Assertions
Extractions
If/Else
How It Works
- KaneAI takes a screenshot of the current page
- The AI model analyzes the screenshot to find the requested information
- The extracted value is compared against the expected value using the specified operator
Best Practices
- Use visual assertions for any text or content you can see on screen
- Be specific about what to look for: “the price in the cart summary” not just “the price”
- For exact CSS values (like
rgb(255,0,0)or#ff0000), use Textual (DOM) instead - For element states (disabled, checked), use Textual (DOM) instead