Skip to main content
Browser monitors use Playwright to launch a real browser and interact with your web pages. Use them to monitor login flows, verify UI content, catch JavaScript errors, and test anything that requires a browser. Browser monitors work with both the Sequential Builder and Graph Builder, and can be mixed with API requests in the same monitor.

Basic example

Browser steps

Each browser node contains an ordered list of steps. Steps execute sequentially inside a single browser page. Navigate to a URL. Accepts a raw string, variable(), or secret().
Options:

click

Click an element by CSS selector.
Options:

fill

Type into an input field. The value accepts raw strings, variable(), or secret().

select

Choose an option from a <select> dropdown.

waitForSelector

Wait for an element to reach a given state before continuing.
Options:

extractText

Extract the text content of an element and store it under a name for later assertions.
Access extracted values in assertions with state["node"].extracts["name"].

screenshot

Capture a screenshot of the page at this point in the flow.

BrowserAction config

Wrap your steps in BrowserAction() to create a browser node:

Browser assertions

Browser nodes expose different state properties than API request nodes. Use these in .assert():

Page state

Performance

Console errors

Catch JavaScript errors thrown in the browser:

Extracted text

Assert on values captured by extractText() steps:
All standard assertion predicates and negation work with browser subjects.

Login flow example

A common pattern: navigate to a login page, enter credentials using secret(), submit, and verify the redirect.

Mixed API + browser monitors

Combine API requests and browser interactions in a single monitor. For example, create a resource via the API and then verify it appears in the UI:

Using with the graph builder

Use BrowserAction() with addNode() the same way you use HttpRequest():

Frequency requirements

Browser monitors require a minimum frequency of 1 minute. API-only monitors have no minimum.
See Frequencies & Scheduling for more on scheduling.
Browser monitors are more resource-intensive than API monitors. Choose a frequency that balances monitoring coverage with execution cost.