Skip to main content

Composite Actions

bap act is the killer feature of BAP CLI. It batches multiple browser steps into a single command and a single server call.

Syntax

Each step follows the format:

Examples

Supported Actions

The following actions can be used in composite steps:

Fused Observation

Combine act with --observe to get the resulting page state in the same server call:
This turns 3 roundtrips (act + observe + process) into 1.
flag
Perform a post-observation after all steps complete. Returns updated page elements.
string
default:"full"
Response tier for the fused observation: full, interactive, or minimal.

Selector Syntax in Steps

Within composite steps, the parser splits on the first : for the action name, then scans right-to-left for an unquoted = to separate the selector from the value.
If your value contains =, wrap it in quotes: fill:e5="a=b". The parser finds the rightmost unquoted = to split.

Comparison