Skip to main content
Validate the current page state with AI.
is_logged_in = await page.validate("Check if the user is logged in")
print(is_logged_in)  # True or False

Returns bool / boolean

True if the condition holds, False otherwise.