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

# How to Assert DevTools Data in Kane CLI

> Verify data that is not visible on the page: HTTP network traffic, console output, performance metrics, cookies, localStorage, and clipboard.

DevTools assertions check data that does not appear on the page: HTTP network traffic, browser console output, performance metrics, cookies, localStorage, and the clipboard. KaneAI captures this data in the background, so you only describe what to check.

## Available Domains

| Domain | What It Captures | Documentation |
| - | - | - |
| [Network](https://www.testmuai.com/docs/kane-cli-checkpoint-devtools-network.md) | HTTP requests and responses | Status codes, headers, response bodies, timing |
| [Console](https://www.testmuai.com/docs/kane-cli-checkpoint-devtools-console.md) | Browser console messages | Errors, warnings, log messages, JS exceptions |
| [Performance](https://www.testmuai.com/docs/kane-cli-checkpoint-devtools-performance.md) | Core Web Vitals | LCP, CLS, INP, FCP, TTFB |
| [Cookies](https://www.testmuai.com/docs/kane-cli-checkpoint-devtools-cookies.md) | Browser cookies | Names, values, flags (httpOnly, secure, sameSite) |
| [localStorage](https://www.testmuai.com/docs/kane-cli-checkpoint-devtools-localstorage.md) | Browser localStorage | Key-value pairs stored in the browser |
| [Clipboard](https://www.testmuai.com/docs/kane-cli-checkpoint-devtools-clipboard.md) | Test clipboard | Copied text/HTML/images: verify Copy buttons, extract copied values |

## How It Works

Each DevTools domain follows the same pattern:

1. **Capture**: KaneAI captures the data automatically during your test run
2. **Generate**: When a checkpoint triggers, the AI generates code to query the captured data
3. **Execute**: The code runs in an isolated sandbox and returns a result
4. **Assert**: The result is compared against your expected value

You don't write code. You write natural language objectives, and KaneAI handles the rest.

## Examples

```
Assert: no API calls returned 5xx
Assert: no console errors on the page
Assert: page LCP is under 2500ms
Assert: session cookie exists and is httpOnly
Assert: auth_token is stored in localStorage
```

## All Checkpoint Types Work

DevTools assertions support all three checkpoint types:

* **Assert**: "Assert: no console errors", fails the test if there are errors
* **Extract**: "Store all cookies", saves the data for later steps
* **If/Else**: "If the API returned 200 then proceed, else retry", branch on the result

## Important Notes

* DevTools data is **not visible in a screenshot**. KaneAI never tries to open the browser DevTools panel
* Each domain captures data differently. See individual pages for details on timing and scope
* All assertions run in an isolated sandbox. Generated code cannot access the file system or network

## Terminal First Testing With Kane CLI

Natural language browser & mobile app tests right from terminal.

Book a Demo

![Kane CLI terminal](https://assets.testmu.ai/resources/images/Terminal-KaneCLI.png)

×

Schedule Your Personal Demo

<form>
  Select Product

  Schedule Demo
</form>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.