Fill an input field. Clears existing content first.
bap fill label:"Email" "user@example.com"bap fill e5 "user@example.com"bap fill placeholder:"Search..." "headphones"
string
required
Element selector targeting the input field.
string
required
The text value to fill.
Use fill for form fields. It clears existing content and sets the value in one step. Use type
only when you need character-by-character input (e.g., autocomplete, search-as-you-type).
type
Type text character by character into the focused element. Triggers keydown, keypress, and keyup events for each character.
bap type "browser agent protocol"
string
required
The text to type character by character.
type does not clear existing content. It appends to whatever is already in the field. For form
fields, prefer fill.
press
Press a keyboard key or shortcut.
bap press Enterbap press Tabbap press Escape
bap press Control+abap press Meta+c
string
required
Key name (e.g., Enter, Tab, Escape, ArrowDown, Control+a).
bap scroll down --pixels=500bap scroll up --pixels=200
bap scroll role:button:"Load More"
bap scroll left --pixels=300bap scroll right
string
default:"down"
Scroll direction: up, down, left, right.
number
default:"300"
Number of pixels to scroll.
string
When provided, scrolls the element into view instead of scrolling the page.
Selectors
All action commands accept the same selector formats:
Selector
Example
When to use
e<N>
e15
From snapshot refs (playwright-cli compatible)
@<ref>
@ep44e3j
Stable ref from bap observe
role:<role>:"<name>"
role:button:"Submit"
By ARIA role and name (recommended)
text:"<content>"
text:"Sign in"
By visible text
label:"<text>"
label:"Email"
Form fields by label
placeholder:"<text>"
placeholder:"Search..."
By placeholder text
testid:"<id>"
testid:"submit-btn"
By data-testid
css:<selector>
css:.btn-primary
CSS selector (last resort)
xpath:<path>
xpath://button
XPath selector (last resort)
coords:<x>,<y>
coords:100,200
By page coordinates
Never copy CSS selectors from browser DevTools. They break across deployments. Prefer semantic
selectors (role:, label:, text:) that survive DOM changes.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BAP Docs","colors":{"primary":"#1a1a1a","light":"#f5f5f5","dark":"#1a1a1a"},"logo":{"light":"https://mintcdn.com/piyushvyas/SAjWCSGGjcR0-kMU/logo/light.svg?fit=max\u0026auto=format\u0026n=SAjWCSGGjcR0-kMU\u0026q=85\u0026s=b3a82ba997e99c772bcd297add5a163d","dark":"https://mintcdn.com/piyushvyas/SAjWCSGGjcR0-kMU/logo/dark.svg?fit=max\u0026auto=format\u0026n=SAjWCSGGjcR0-kMU\u0026q=85\u0026s=f4969f383b5e6fdef8314cb987808b2e"},"favicon":"/favicon.svg","navbar":{"links":[{"href":"https://github.com/browseragentprotocol/bap","label":"GitHub"}],"primary":{"type":"button","label":"Get Started","href":"/getting-started/overview"}},"footer":{"socials":{"github":"https://github.com/browseragentprotocol/bap"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/browseragentprotocol/bap"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"piyushvyas","hasAudioNarration":false,"actualSubdomain":"piyushvyas","customDomains":[],"gitSource":{"type":"github","owner":"browseragentprotocol","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94a93b9c52538cea1a305:success","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Documentation","count":25},{"language":"default","tag":"Protocol","count":15},{"language":"default","tag":"CLI Reference","count":13},{"language":"default","tag":"Core Concepts","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Features","count":6},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"MCP Reference","count":5},{"language":"default","tag":"MCP","count":5},{"language":"default","tag":"Commands","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"cli/actions","slug":"/cli/actions","pageMetadata":{"title":"Action Commands","description":"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.","href":"/cli/actions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,ParamField,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`action-commands`,children:`Action Commands`}),`\n`,_jsxs(_components.p,{children:[`Individual interaction commands for when you need fine-grained control. For multi-step flows, prefer `,_jsx(_components.a,{href:`/cli/composite-actions`,children:`composite actions`}),` with `,_jsx(_components.code,{children:`bap act`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`click`,children:`click`}),`\n`,_jsx(_components.p,{children:`Click an element.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`By snapshot ref`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` click`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` e5`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`By ARIA role`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` click`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` role:button:\"Submit\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`By visible text`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` click`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` text:\"Sign in\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`By stable ref from observe`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` click`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @ep44e3j`})]}),`\n`]})})})]}),`\n`,_jsx(ParamField,{path:`selector`,type:`string`,required:true,id:`param-selector`,children:_jsxs(_components.p,{children:[`Element selector. See `,_jsx(_components.a,{href:`#selectors`,children:`Selectors`}),` below.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`fill`,children:`fill`}),`\n`,_jsx(_components.p,{children:`Fill an input field. Clears existing content first.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fill`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` label:\"Email\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user@example.com\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fill`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` e5`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user@example.com\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fill`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` placeholder:\"Search...\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"headphones\"`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{path:`selector`,type:`string`,required:true,id:`param-selector-1`,children:_jsx(_components.p,{children:`Element selector targeting the input field.`})}),`\n`,_jsx(ParamField,{path:`value`,type:`string`,required:true,id:`param-value`,children:_jsx(_components.p,{children:`The text value to fill.`})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`fill`}),` for form fields. It clears existing content and sets the value in one step. Use `,_jsx(_components.code,{children:`type`}),`\nonly when you need character-by-character input (e.g., autocomplete, search-as-you-type).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`type`,children:`type`}),`\n`,_jsxs(_components.p,{children:[`Type text character by character into the focused element. Triggers `,_jsx(_components.code,{children:`keydown`}),`, `,_jsx(_components.code,{children:`keypress`}),`, and `,_jsx(_components.code,{children:`keyup`}),` events for each character.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` type`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"browser agent protocol\"`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{path:`text`,type:`string`,required:true,id:`param-text`,children:_jsx(_components.p,{children:`The text to type character by character.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`type`}),` does not clear existing content. It appends to whatever is already in the field. For form\nfields, prefer `,_jsx(_components.code,{children:`fill`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`press`,children:`press`}),`\n`,_jsx(_components.p,{children:`Press a keyboard key or shortcut.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Single key`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` press`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Enter`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` press`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Tab`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` press`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Escape`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Keyboard shortcut`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` press`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Control+a`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` press`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Meta+c`})]}),`\n`]})})})]}),`\n`,_jsx(ParamField,{path:`key`,type:`string`,required:true,id:`param-key`,children:_jsxs(_components.p,{children:[`Key name (e.g., `,_jsx(_components.code,{children:`Enter`}),`, `,_jsx(_components.code,{children:`Tab`}),`, `,_jsx(_components.code,{children:`Escape`}),`, `,_jsx(_components.code,{children:`ArrowDown`}),`, `,_jsx(_components.code,{children:`Control+a`}),`).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`select`,children:`select`}),`\n`,_jsx(_components.p,{children:`Select an option from a dropdown.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` select`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` label:\"Country\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Canada\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` select`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` e8`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Option B\"`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{path:`selector`,type:`string`,required:true,id:`param-selector-2`,children:_jsxs(_components.p,{children:[`Selector targeting the `,_jsx(_components.code,{children:`\u003cselect>`}),` element.`]})}),`\n`,_jsx(ParamField,{path:`value`,type:`string`,required:true,id:`param-value-1`,children:_jsx(_components.p,{children:`The option value or visible text to select.`})}),`\n`,_jsx(Heading,{level:`2`,id:`check-/-uncheck`,children:`check / uncheck`}),`\n`,_jsx(_components.p,{children:`Toggle checkboxes.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` check`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` label:\"I agree to the terms\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` uncheck`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` e12`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{path:`selector`,type:`string`,required:true,id:`param-selector-3`,children:_jsx(_components.p,{children:`Selector targeting the checkbox element.`})}),`\n`,_jsx(Heading,{level:`2`,id:`hover`,children:`hover`}),`\n`,_jsx(_components.p,{children:`Hover over an element. Useful for triggering hover menus or tooltips.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hover`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` role:menuitem:\"Products\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hover`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` text:\"More options\"`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{path:`selector`,type:`string`,required:true,id:`param-selector-4`,children:_jsx(_components.p,{children:`Selector targeting the element to hover over.`})}),`\n`,_jsx(Heading,{level:`2`,id:`scroll`,children:`scroll`}),`\n`,_jsx(_components.p,{children:`Scroll the page or scroll an element into view.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Scroll down (default)`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scroll`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scroll`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` down`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Scroll with pixel amount`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scroll`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` down`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --pixels=500`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scroll`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --pixels=200`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Scroll element into view`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scroll`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` role:button:\"Load More\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Horizontal scroll`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scroll`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` left`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --pixels=300`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scroll`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` right`})]}),`\n`]})})})]}),`\n`,_jsx(ParamField,{path:`direction`,type:`string`,default:`down`,id:`param-direction`,children:_jsxs(_components.p,{children:[`Scroll direction: `,_jsx(_components.code,{children:`up`}),`, `,_jsx(_components.code,{children:`down`}),`, `,_jsx(_components.code,{children:`left`}),`, `,_jsx(_components.code,{children:`right`}),`.`]})}),`\n`,_jsx(ParamField,{path:`--pixels`,type:`number`,default:`300`,id:`param-pixels`,children:_jsx(_components.p,{children:`Number of pixels to scroll.`})}),`\n`,_jsx(ParamField,{path:`selector`,type:`string`,id:`param-selector-5`,children:_jsx(_components.p,{children:`When provided, scrolls the element into view instead of scrolling the page.`})}),`\n`,_jsx(Heading,{level:`2`,id:`selectors`,children:`Selectors`}),`\n`,_jsx(_components.p,{children:`All action commands accept the same selector formats:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Selector`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`When to use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`e\u003cN>`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`e15`})}),_jsx(_components.td,{children:`From snapshot refs (playwright-cli compatible)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@\u003cref>`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@ep44e3j`})}),_jsxs(_components.td,{children:[`Stable ref from `,_jsx(_components.code,{children:`bap observe`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`role:\u003crole>:\"\u003cname>\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`role:button:\"Submit\"`})}),_jsx(_components.td,{children:`By ARIA role and name (recommended)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text:\"\u003ccontent>\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`text:\"Sign in\"`})}),_jsx(_components.td,{children:`By visible text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`label:\"\u003ctext>\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`label:\"Email\"`})}),_jsx(_components.td,{children:`Form fields by label`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`placeholder:\"\u003ctext>\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`placeholder:\"Search...\"`})}),_jsx(_components.td,{children:`By placeholder text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`testid:\"\u003cid>\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`testid:\"submit-btn\"`})}),_jsxs(_components.td,{children:[`By `,_jsx(_components.code,{children:`data-testid`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`css:\u003cselector>`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`css:.btn-primary`})}),_jsx(_components.td,{children:`CSS selector (last resort)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`xpath:\u003cpath>`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`xpath://button`})}),_jsx(_components.td,{children:`XPath selector (last resort)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coords:\u003cx>,\u003cy>`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`coords:100,200`})}),_jsx(_components.td,{children:`By page coordinates`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never copy CSS selectors from browser DevTools. They break across deployments. Prefer semantic\nselectors (`,_jsx(_components.code,{children:`role:`}),`, `,_jsx(_components.code,{children:`label:`}),`, `,_jsx(_components.code,{children:`text:`}),`) that survive DOM changes.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Action Commands","description":"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.","href":"/cli/actions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Action Commands","slug":"action-commands","depth":1,"children":[]},{"title":"click","slug":"click","depth":2,"children":[]},{"title":"fill","slug":"fill","depth":2,"children":[]},{"title":"type","slug":"type","depth":2,"children":[]},{"title":"press","slug":"press","depth":2,"children":[]},{"title":"select","slug":"select","depth":2,"children":[]},{"title":"check / uncheck","slug":"check-/-uncheck","depth":2,"children":[]},{"title":"hover","slug":"hover","depth":2,"children":[]},{"title":"scroll","slug":"scroll","depth":2,"children":[]},{"title":"Selectors","slug":"selectors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"piyushvyas","siteName":"BAP Docs","title":"Action Commands - BAP Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-21T20:10:21.985Z","originalFileLocation":"cli/actions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.\">\u003cmeta data-mint-head name=\"application-name\" content=\"BAP Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Action Commands - BAP Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BAP Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://piyushvyas.mintlify.app/cli/actions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://piyushvyas.mintlify.site/_mintlify/api/og/v2?division=Commands\u0026amp;title=Action+Commands\u0026amp;description=Interact+with+page+elements%3A+click%2C+fill%2C+type%2C+press%2C+select%2C+check%2C+uncheck%2C+hover%2C+and+scroll.\u0026amp;theme=7d79b32ea2fda985fedb2d65\u0026amp;signature=3907465bed177a173004b9bec54453f124cf33921d206304608310511405e413\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Action Commands - BAP Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://piyushvyas.mintlify.site/_mintlify/api/og/v2?division=Commands\u0026amp;title=Action+Commands\u0026amp;description=Interact+with+page+elements%3A+click%2C+fill%2C+type%2C+press%2C+select%2C+check%2C+uncheck%2C+hover%2C+and+scroll.\u0026amp;theme=7d79b32ea2fda985fedb2d65\u0026amp;signature=3907465bed177a173004b9bec54453f124cf33921d206304608310511405e413\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/piyushvyas/-s_jUytUdpdIo1Bp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BAP Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1a1a1a\">\u003clink data-mint-head rel=\"canonical\" href=\"https://piyushvyas.mintlify.app/cli/actions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/actions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://piyushvyas.mintlify.app/#organization\",\"name\":\"BAP Docs\",\"url\":\"https://piyushvyas.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/piyushvyas/SAjWCSGGjcR0-kMU/logo/light.svg?fit=max\u0026auto=format\u0026n=SAjWCSGGjcR0-kMU\u0026q=85\u0026s=b3a82ba997e99c772bcd297add5a163d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://piyushvyas.mintlify.app#website\",\"name\":\"BAP Docs\",\"url\":\"https://piyushvyas.mintlify.app\",\"publisher\":{\"@id\":\"https://piyushvyas.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://piyushvyas.mintlify.app/cli/actions#webpage\",\"url\":\"https://piyushvyas.mintlify.app/cli/actions\",\"name\":\"Action Commands\",\"description\":\"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.\",\"dateModified\":\"2026-03-21T20:10:21.985Z\",\"isPartOf\":{\"@id\":\"https://piyushvyas.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://piyushvyas.mintlify.app/cli/actions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://piyushvyas.mintlify.app/cli/actions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Commands\",\"item\":\"https://piyushvyas.mintlify.app/cli/essentials\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Action Commands\",\"item\":\"https://piyushvyas.mintlify.app/cli/actions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://piyushvyas.mintlify.app/cli/actions#article\",\"headline\":\"Action Commands\",\"name\":\"Action Commands\",\"description\":\"Interact with page elements: click, fill, type, press, select, check, uncheck, hover, and scroll.\",\"url\":\"https://piyushvyas.mintlify.app/cli/actions\",\"mainEntityOfPage\":{\"@id\":\"https://piyushvyas.mintlify.app/cli/actions#webpage\"},\"dateModified\":\"2026-03-21T20:10:21.985Z\",\"publisher\":{\"@id\":\"https://piyushvyas.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://piyushvyas.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BAP Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BAP Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/actions.md","siteName":"BAP Docs","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/browseragentprotocol/bap"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"CLI Reference","groups":[{"group":"CLI","pages":[{"title":"CLI Overview","href":"/cli/overview"}]},{"group":"Commands","pages":[{"title":"Essentials","href":"/cli/essentials"},{"title":"Action Commands","href":"/cli/actions"},{"title":"Navigation","description":"Browser lifecycle and navigation commands: open, goto, back, forward, reload, close, close-all.","href":"/cli/navigation"},{"title":"Observation","href":"/cli/observation"},{"title":"Composite Actions","href":"/cli/composite-actions"}]},{"group":"Features","pages":[{"title":"Workflows","href":"/cli/workflows"},{"title":"bap run","href":"/cli/run"},{"title":"Recipes","href":"/cli/recipes"},{"title":"Tracing","href":"/cli/tracing"},{"title":"bap plan","href":"/cli/plan"},{"title":"bap watch","href":"/cli/watch"},{"title":"Eval","href":"/cli/eval"}]},{"group":"More","pages":[{"title":"Sessions, Tabs \u0026 Frames","href":"/cli/sessions-tabs"},{"title":"Configuration","href":"/cli/configuration"}]}]},{"tab":"MCP Reference","pages":[{"title":"MCP Reference","href":"/mcp/overview"}]},{"tab":"Protocol","pages":[{"title":"Protocol","href":"/protocol/overview"}]}]},"basePath":"","title":"Action Commands - BAP Docs","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}