Skip to main content

Checkpoints

Checkpoints are verification points that KaneAI evaluates during test execution. They let you assert conditions, branch on results, or extract values for later use.

Checkpoint Types

TypeWhat it does
AssertionVerify a condition is true — fails the test if not
If/ElseBranch execution based on a condition
ExtractionStore a value for use in later steps

All three types work with every analyze method below.

Analyze Methods

Each checkpoint uses an analyze method to determine where to look for the data:

MethodData SourceWhen to Use
VisualScreenshot (what you see on screen)Text, labels, prices, counts, colors, visibility checks
Textual (DOM)Page DOM elementsElement states (disabled, checked), CSS properties, HTML attributes
URLBrowser URL barURL path, query params, redirects
TitlePage titleDocument title verification
DevToolsBrowser internalsNetwork traffic, console logs, performance, cookies, localStorage

How to Use

Write your assertions naturally in the objective. KaneAI automatically picks the right analyze method:

Assert: the price is $29.99                    → Visual
Assert: the submit button is disabled → Textual (DOM)
Assert: URL contains /checkout → URL
Assert: page title contains "Dashboard" → Title
Assert: no API calls returned 5xx → DevTools (Network)
Assert: no console errors → DevTools (Console)
Assert: page LCP is under 2500ms → DevTools (Performance)
Assert: session cookie exists → DevTools (Cookies)
Assert: auth_token exists in localStorage → DevTools (localStorage)

Extractions work the same way:

Store the product price                        → Visual
Store the current URL → URL
Store all cookies → DevTools (Cookies)
Store the API response body → DevTools (Network)

Operators

Assertions support these comparison operators:

OperatorMeaningExample
equalsExact matchprice equals "29.99"
containsSubstring matchURL contains "/checkout"
not_containsDoes not containtitle not contains "Error"
gt / gteGreater than / or equalitems greater than 5
lt / lteLess than / or equalLCP less than 2500
not_equalsNot equalstatus not equals "failed"

Learn More

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles