Keystone home page
Search...
⌘K
Overview
Steps Overview
AI-Powered Steps
AI Assert
Actions
Click
Type
Hover
Scroll
Select
Copy
Paste
File Upload
Assertions
Assert Text
Element Check
Navigation
Navigate
Go Back
Go Forward
Wait for URL
Email Testing
Email Inbox Testing
Email Create Inbox
Wait for Email
Email extract
Log in
Support
Keystone home page
Search...
⌘K
Ask AI
Log in
Support
Support
Search...
Navigation
AI-Powered Steps
AI Assert
Documentation
Steps
CLI
Roadmap
Documentation
Steps
CLI
Roadmap
AI-Powered Steps
AI Assert
Use AI to verify page content
Overview
The
AI_ASSERTION
step uses AI to verify complex assertions about the page content. It takes a screenshot and analyzes both the visual appearance and HTML content to determine if your assertion is true.
Parameters
assertion
string
required
Natural language assertion to verify. The AI will analyze the page to determine if this assertion is true.
Behavior
Screenshot Capture
: Takes a screenshot of the current page
HTML Collection
: Gathers the page HTML structure
AI Analysis
: Sends screenshot and HTML to AI service
Assertion Evaluation
: AI evaluates if the assertion is true
Result Return
: Returns success if true, failure with explanation if false
Common Use Cases
Verifying complex visual layouts
Checking content organization and structure
Validating UI consistency and branding
Verifying responsive design behaviors
Checking for the presence of specific UI patterns
Validating data visualization correctness
Error Handling
The step will fail if:
The assertion evaluates to false
The AI service is unavailable
The screenshot cannot be captured
The page content cannot be analyzed
When assertions fail, the AI provides detailed explanations of why the assertion was not satisfied, helping with debugging.
Previous
Click
Click on an element
Next
On this page
Overview
Parameters
Behavior
Common Use Cases
Error Handling
Assistant
Responses are generated using AI and may contain mistakes.