Auto-Detection mode is a powerful feature of Auto-Browse that automatically manages page contexts and browser state, making it easier to write and maintain automation scripts.
The simplest way to use Auto-Browse is to let it handle context management:
Copy
import { auto } from "auto-browse";async function example() { // Auto-Browse will create and manage the browser/page await auto("go to https://example.com"); await auto("take a snapshot"); await auto("click the login button");}