> ## Documentation Index
> Fetch the complete documentation index at: https://skyvern.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# validate

Validate the current page state with AI.

<CodeGroup>
  ```python Python theme={null}
  is_logged_in = await page.validate("Check if the user is logged in")
  print(is_logged_in)  # True or False
  ```

  ```typescript TypeScript theme={null}
  const isLoggedIn = await page.validate("Check if the user is logged in");
  console.log(isLoggedIn); // true or false
  ```
</CodeGroup>

## Returns `bool` / `boolean`

`True` if the condition holds, `False` otherwise.
