Skip to main content

Recipes

Built-in recipe commands for common browser automation patterns. Recipes combine multiple BAP commands into single, parameterized operations.

login

Automate a login flow with one command.
string
required
The login page URL.
string
required
Username or email to fill.
string
required
Password to fill.
The recipe navigates to the URL, observes the page to find username/password fields, fills them, and clicks the submit button.

fill-form

Fill a form using data from a JSON file.
string
required
The page URL containing the form.
string
required
Path to a JSON file mapping field labels or selectors to values.
Example form-data.json:

wait-for

Wait for an element to appear on the page.
string
required
Selector for the element to wait for.
number
default:"10000"
Maximum wait time in milliseconds.
Use wait-for after actions that trigger asynchronous page updates, like form submissions or API calls that update the DOM.