Skip to main content

Login Flow with bap act

The most common form automation pattern is a login flow. With bap act, you batch fill + click into a single command:
This executes three steps in one shell invocation — no intermediate observe needed.

Step Syntax

Each step in bap act follows the pattern action:selector=value:

Positional Refs

After running bap observe, use the returned element refs directly:

TypeScript SDK

Multi-Step Forms

For forms that span multiple pages or sections, chain bap act calls:

Conditional Steps

In the TypeScript SDK, add conditions to steps that should only run when a prerequisite is met:

Error Recovery

Steps support three error handling strategies:

Fused Observe + Act

Eliminate extra roundtrips by fusing observation with action:

Recipes

For repeatable form flows, use bap recipe: