Creating validations
AI Validations
Our artificial intelligence examines the entire webpage’s HTML content, not just visible elements. For visual components, however, our AI only processes what appears in the current viewport through screenshot analysis.
Use AI validations to verify complex conditions using everyday language:
Category | Example |
---|---|
Text verification | Verify that a confirmation message is displayed on the page |
Element verification | Check that the page shows exactly 3 search results |
Logical checks | The blog post’s publication date is more than 30 days old |
Page status verification | No error messages are visible on the screen |
Your validations can also include visual attributes. Examples include:
Category | Example |
---|---|
Color | Verify the checkout button is displayed in blue |
Layout | The ‘XL’ size option is the largest button on screen |
Imagery | A LinkedIn icon appears on the page |
Variables can also be utilized in validations by wraping text with $ $
. For example: ‘true if is directly below “Where” in the search bar at the top of the page AND in the listings’
Prompting Best Practices
As you become familiar with our platform, you’ll develop a better understanding of how our AI interprets your validations. We recommend approaching our AI as you would a new QA team member. These guidelines will help you effectively communicate what defines correctness in your application:
-
Create focused, single-topic validations.
-
Provide clear context and guidance. To avoid confusion, indicate which section of the page the AI should examine or what type of element you’re targeting.
-
Avoid technical jargon and overly detailed descriptions. Our AI may have difficulty with specialized terms.
Unsupported Validations
The following validation types are currently not supported:
Category | Example |
---|---|
Validations with commands | Expand the dropdown and then check that there are five options available. |
Validations over time | After 5 seconds, a popup appears. |
Subjective validations | The page looks great! |
Complex math | The average slope of the graph is 31.4. |
Complex conditionals | If the user is logged in, check that their profile photo is visible. Otherwise, check that there is a Google icon on the page. |