Requires exactly one of label, value, or index to identify the option to
choose. Target the <select> element by description or CSS selector. Coordinate
targets are not supported.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Momentic","description":"Test web, iOS, and Android apps with Momentic. Use Mo for exploratory testing against a running app, or keep YAML tests in your repository for repeatable checks locally and in CI.","colors":{"primary":"#1C1C1C","light":"#87F700","dark":"#1C1C1C"},"logo":{"light":"https://mintcdn.com/momentic-docs/ApAfICLIl3O5ODL7/logo/light.svg?fit=max\u0026auto=format\u0026n=ApAfICLIl3O5ODL7\u0026q=85\u0026s=9b227034c1f31aa7b02f4d5328a2aae2","dark":"https://mintcdn.com/momentic-docs/ApAfICLIl3O5ODL7/logo/dark.svg?fit=max\u0026auto=format\u0026n=ApAfICLIl3O5ODL7\u0026q=85\u0026s=789c4053510b44e19b48f5998ee358b8","href":"https://momentic.ai"},"favicon":"https://mintcdn.com/momentic-docs/tWS-t-JXFcoUiMN_/favicon.png?fit=max\u0026auto=format\u0026n=tWS-t-JXFcoUiMN_\u0026q=85\u0026s=9c8acb5a065cb3dffff022c2982d2711","background":{"color":{"light":"#F5F3F2","dark":"#1C1C1C"}},"navbar":{"links":[{"href":"https://momentic.ai/sales","label":"Book a demo"},{"href":"mailto:support@momentic.ai","label":"Support"}],"primary":{"type":"button","label":"Log in","href":"https://app.momentic.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/momentic-ai","website":"https://momentic.ai","x":"https://twitter.com/MomenticAI"},"links":[{"header":"Company","items":[{"label":"Blog","href":"https://momentic.ai/blog"},{"label":"Careers","href":"https://momentic.ai/careers"},{"label":"Y Combinator","href":"https://www.ycombinator.com/companies/momentic"},{"label":"Trust Center","href":"https://trust.momentic.ai"}]},{"header":"Legal","items":[{"label":"Terms of Service","href":"https://momentic.ai/legal/tos"},{"label":"Privacy Policy","href":"https://momentic.ai/legal/privacy"}]}]},"seo":{"metatags":{"canonical":"https://momentic.ai/docs"}},"fonts":{"heading":{"family":"Inter Display","weight":600,"source":"fonts/InterDisplay-SemiBold.woff2","format":"woff2"},"body":{"family":"Inter Display","weight":400,"source":"fonts/InterDisplay-Regular.woff2","format":"woff2"}},"icons":{"library":"fontawesome"},"integrations":{"ga4":{"measurementId":"G-3NEC0DZX5W"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"markdown":{"instructions":["The canonical docs host is https://momentic.ai/docs. Append .md to any page URL for clean Markdown. Fetch https://momentic.ai/docs/llms.txt for the page index and https://momentic.ai/docs/llms-full.txt for every page in one file.","For an unattended setup, run `npx --yes @momentic/wizard@latest -y --platform web --editor-tools skills` (use `--platform ios` or `--platform android` for mobile). Never run an interactive command in a non-TTY shell.","Mo is the AI QA engineer, a separate product from the YAML test framework: its npm package and CLI are `qa` (not `mo` — `npx mo` is a different project). Install with `npm install -g qa`, authenticate the same MOMENTIC_API_KEY way, install repo skills with `qa skills -y`, and start a session with `qa start \"\u003cbrief>\"` or `qa \u003curl>`. Docs: https://momentic.ai/docs/mo.md.","You cannot complete the browser sign-in yourself. Read the API key from the exact MOMENTIC_API_KEY environment variable (similarly named vars like BILT_MOMENTIC_API_KEY are ignored), or ask the user to create one at https://app.momentic.ai/settings/api-keys and paste it back.","Momentic's capability summary for agents is at https://momentic.ai/docs/skill.md. Install the skills with `npx momentic skills --yes` (or `npx momentic-mobile skills --yes` for mobile).","Tests are YAML files in the user's repository. Use only the step names listed at https://momentic.ai/docs/reference/commands.md and the file structure at https://momentic.ai/docs/core-concepts/file-format.md. Do not invent step names, config keys, or CLI flags.","Web tests run on Chromium, iOS tests on simulators, and Android tests on emulators. Physical devices are not supported."]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"momentic-docs","hasAudioNarration":false,"actualSubdomain":"momentic-docs","customDomains":["momentic.ai"],"gitSource":{"type":"github","owner":"momentic-ai","repo":"monorepo","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adbed86c5df131524b02a8d","collectionId":"45ca6bcc-4f1b-468a-99fe-c6bc83dd889c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adbed86c5df131524b02a8d"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adc521cdbdae3a1f6ddd3ff","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Steps reference","count":103},{"language":"default","tag":"Web","count":64},{"language":"default","tag":"CLI reference","count":61},{"language":"default","tag":"Documentation","count":59},{"language":"default","tag":"Commands","count":57},{"language":"default","tag":"Guides","count":47},{"language":"default","tag":"Mobile","count":40},{"language":"default","tag":"momentic CLI","count":24},{"language":"default","tag":"Mo","count":21},{"language":"default","tag":"Configuration","count":20}]},"assistantConfig":{},"hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"sidebar-cta.css","content":"#momentic-sidebar-cta{--cta-text:rgb(var(--gray-900));--cta-muted:rgb(var(--gray-600));--cta-border:rgb(var(--gray-950) / 0.1);--cta-focus:rgb(var(--primary));margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--cta-border);color:var(--cta-text);font-size:.875rem;line-height:1.5}.dark #momentic-sidebar-cta{--cta-text:rgb(var(--gray-100));--cta-muted:rgb(var(--gray-400));--cta-border:rgb(var(--gray-50) / 0.12);--cta-focus:rgb(var(--primary-light))}#momentic-sidebar-cta p{margin:0}#momentic-sidebar-cta-title{font-weight:600}#momentic-sidebar-cta .momentic-sidebar-cta-description{margin-top:.5rem;color:var(--cta-muted)}#momentic-sidebar-cta a{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.25rem;margin-top:1rem;padding:.5rem .875rem;border-radius:.5rem;background:rgb(var(--primary-light));color:rgb(var(--primary));font-weight:500;text-decoration:none}#momentic-sidebar-cta a:hover{background:color-mix(in srgb,rgb(var(--primary-light)),rgb(var(--primary)) 8%)}#momentic-sidebar-cta a:focus-visible{outline:2px solid var(--cta-focus);outline-offset:3px}"}],"page":{"pagePath":"reference/commands/select","slug":"/reference/commands/select","pageMetadata":{"title":"select","description":"Pick an option from a `\u003cselect>` dropdown.","platforms":["web"],"href":"/reference/commands/select"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Pick an option from a \", _jsx(_components.code, {\n children: \"\u003cselect>\"\n }), \" dropdown.\"]\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Requires exactly one of `,_jsx(_components.code,{children:`label`}),`, `,_jsx(_components.code,{children:`value`}),`, or `,_jsx(_components.code,{children:`index`}),` to identify the option to\nchoose. Target the `,_jsx(_components.code,{children:`\u003cselect>`}),` element by description or CSS selector. Coordinate\ntargets are not supported.`]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`from`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Description of the `,_jsx(_components.code,{children:`\u003cselect>`}),` element.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`css`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`CSS selector for the target. Use instead of the description key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`force`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Force the action even when the element is not actionable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`iframe`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`URL or URL pattern of the iframe that contains the target element.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`label`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Visible label of the option to choose.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`value`}),` attribute of the option to choose.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`index`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number | string`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Zero-based index of the option to choose.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`saveAs`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Name of the variable to write this step’s return value to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`retries`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Number of times to retry the step on failure before failing the test.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`skipped`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Skip this step at execution time.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`yaml`,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:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`select`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`The select element labeled \"Dropdown:\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` label`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{ env.OPTION_LABEL }}\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`yaml`,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:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`select`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`The select element \"Dropdown:\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{ env.OPTION_VALUE }}\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`yaml`,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:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`select`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`The \"Dropdown:\" select element`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` index`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{ env.OPTION_INDEX }}\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/core-concepts/finding-elements`,children:`Finding elements`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/page-interactions/dropdowns`,children:`Dropdowns`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/core-concepts/steps`,children:`Steps`})}),`\n`]})]})}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":"select","description":"Pick an option from a `\u003cselect>` dropdown.","platforms":["web"],"href":"/reference/commands/select"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/momentic-docs/9ff24fbef1e22e18/sidebar-cta.js"],"subdomain":"momentic-docs","siteName":"Momentic","title":"select - Momentic","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-01T17:51:14.891Z","originalFileLocation":"reference/commands/select.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=\"Pick an option from a dropdown.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Momentic\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_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=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"select - Momentic\">\u003cmeta data-mint-head property=\"og:description\" content=\"Pick an option from a dropdown.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Momentic\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://momentic.ai/docs/reference/commands/select\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://momentic-docs.mintlify.app/_mintlify/api/og/v2?division=Keyboard\u0026amp;title=select\u0026amp;description=Pick+an+option+from+a+%60%3Cselect%3E%60+dropdown.\u0026amp;theme=bfe2fa5124c09c7fd91399c7\u0026amp;signature=f699b42b6819da20597a72df9bc43dc36ddce2112e849abd36ee552ffd61813a\">\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=\"select - Momentic\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Pick an option from a dropdown.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://momentic-docs.mintlify.app/_mintlify/api/og/v2?division=Keyboard\u0026amp;title=select\u0026amp;description=Pick+an+option+from+a+%60%3Cselect%3E%60+dropdown.\u0026amp;theme=bfe2fa5124c09c7fd91399c7\u0026amp;signature=f699b42b6819da20597a72df9bc43dc36ddce2112e849abd36ee552ffd61813a\">\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=\"/docs/mintlify-assets/_mintlify/favicons/momentic-docs/kvzH4LTcMZrfLtd7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Momentic\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1C1C1C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://momentic.ai/docs/reference/commands/select\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/reference/commands/select.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://momentic.ai/#organization\",\"name\":\"Momentic\",\"url\":\"https://momentic.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/momentic-docs/ApAfICLIl3O5ODL7/logo/light.svg?fit=max\u0026auto=format\u0026n=ApAfICLIl3O5ODL7\u0026q=85\u0026s=9b227034c1f31aa7b02f4d5328a2aae2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://momentic.ai/docs#website\",\"name\":\"Momentic\",\"url\":\"https://momentic.ai/docs\",\"publisher\":{\"@id\":\"https://momentic.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://momentic.ai/docs/reference/commands/select#webpage\",\"url\":\"https://momentic.ai/docs/reference/commands/select\",\"name\":\"select\",\"description\":\"Pick an option from a dropdown.\",\"dateModified\":\"2026-10-01T17:51:14.891Z\",\"isPartOf\":{\"@id\":\"https://momentic.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://momentic.ai/docs/reference/commands/select#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://momentic.ai/docs/reference/commands/select#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Web\",\"item\":\"https://momentic.ai/docs/reference/commands/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Keyboard\",\"item\":\"https://momentic.ai/docs/reference/commands/copy\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"select\",\"item\":\"https://momentic.ai/docs/reference/commands/select\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://momentic.ai/docs/reference/commands/select#article\",\"headline\":\"select\",\"name\":\"select\",\"description\":\"Pick an option from a dropdown.\",\"url\":\"https://momentic.ai/docs/reference/commands/select\",\"mainEntityOfPage\":{\"@id\":\"https://momentic.ai/docs/reference/commands/select#webpage\"},\"dateModified\":\"2026-10-01T17:51:14.891Z\",\"publisher\":{\"@id\":\"https://momentic.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://momentic.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Momentic\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Momentic","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book","pages":[{"title":"Documentation","href":""}]},{"tab":"Mo","icon":"robot","pages":[{"title":"Mo","href":"/mo"}]},{"tab":"Guides","icon":"lightbulb","pages":[{"title":"Guides","href":"/guides"}]},{"tab":"Configuration","icon":"sliders","pages":[{"title":"Configuration","href":"/configuration/momentic-config"}]},{"tab":"CLI reference","icon":"terminal","pages":[{"title":"CLI reference","href":"/cli-reference"}]},{"tab":"Steps reference","icon":"book-open","groups":[{"group":"Web","icon":"globe","pages":[{"group":"Overview","pages":[{"title":"Web commands","sidebarTitle":"All commands","href":"/reference/commands"}]},{"group":"AI","pages":[{"title":"act","href":"/reference/commands/act"},{"title":"assert","href":"/reference/commands/assert"},{"title":"assertVisually","href":"/reference/commands/assert-visually"},{"title":"extract","href":"/reference/commands/extract"}]},{"group":"Mouse","pages":[{"title":"blur","href":"/reference/commands/blur"},{"title":"click","href":"/reference/commands/click"},{"title":"doubleClick","href":"/reference/commands/double-click"},{"title":"dragAndDrop","href":"/reference/commands/drag-and-drop"},{"title":"focus","href":"/reference/commands/focus"},{"title":"hover","href":"/reference/commands/hover"},{"title":"mouseDrag","href":"/reference/commands/mouse-drag"},{"title":"rightClick","href":"/reference/commands/right-click"}]},{"group":"Keyboard","pages":[{"title":"copy","href":"/reference/commands/copy"},{"title":"keyDown","href":"/reference/commands/key-down"},{"title":"keyUp","href":"/reference/commands/key-up"},{"title":"paste","href":"/reference/commands/paste"},{"title":"press","description":"Press a key or key combination.","href":"/reference/commands/press"},{"title":"select","href":"/reference/commands/select"},{"title":"type","description":"Type text into an input, optionally clearing and submitting.","href":"/reference/commands/type"}]},{"group":"Form","pages":[{"title":"fileUpload","href":"/reference/commands/file-upload"}]},{"group":"Scroll","pages":[{"title":"scrollDown","href":"/reference/commands/scroll-down"},{"title":"scrollLeft","href":"/reference/commands/scroll-left"},{"title":"scrollRight","href":"/reference/commands/scroll-right"},{"title":"scrollUp","href":"/reference/commands/scroll-up"}]},{"group":"Navigation","pages":[{"title":"closeTab","href":"/reference/commands/close-tab"},{"title":"goBack","href":"/reference/commands/go-back"},{"title":"goForward","href":"/reference/commands/go-forward"},{"title":"navigate","href":"/reference/commands/navigate"},{"title":"newTab","href":"/reference/commands/new-tab"},{"title":"refresh","href":"/reference/commands/refresh"},{"title":"switchTab","href":"/reference/commands/switch-tab"}]},{"group":"Waits","pages":[{"title":"wait","href":"/reference/commands/wait"},{"title":"waitForUrl","href":"/reference/commands/wait-for-url"},{"title":"waitForUrlNotToMatch","href":"/reference/commands/wait-for-url-not-to-match"}]},{"group":"Page checks","pages":[{"title":"checkPageContains","href":"/reference/commands/check-page-contains"},{"title":"checkPageDoesNotContain","href":"/reference/commands/check-page-does-not-contain"}]},{"group":"Element checks","pages":[{"title":"checkElement","href":"/reference/commands/check-element"},{"title":"checkElementAttribute","href":"/reference/commands/check-element-attribute"},{"title":"checkElementContent","href":"/reference/commands/check-element-content"},{"title":"checkElementName","href":"/reference/commands/check-element-name"},{"title":"checkElementStyle","href":"/reference/commands/check-element-style"}]},{"group":"Network","pages":[{"title":"awaitListener","href":"/reference/commands/await-listener"},{"title":"getRecordedRequests","href":"/reference/commands/get-recorded-requests"},{"title":"graphqlRequest","href":"/reference/commands/graphql-request"},{"title":"header","href":"/reference/commands/header"},{"title":"mock","href":"/reference/commands/mock"},{"title":"recordRequests","href":"/reference/commands/record-requests"},{"title":"registerRequestListener","href":"/reference/commands/register-request-listener"},{"title":"removeRouteMock","href":"/reference/commands/remove-route-mock"},{"title":"request","href":"/reference/commands/request"}]},{"group":"Storage","pages":[{"title":"cookie","href":"/reference/commands/cookie"},{"title":"localStorage","href":"/reference/commands/local-storage"}]},{"group":"Authentication","pages":[{"title":"authLoad","href":"/reference/commands/auth-load"},{"title":"authSave","href":"/reference/commands/auth-save"}]},{"group":"Visual","pages":[{"title":"captcha","href":"/reference/commands/captcha"},{"title":"dialog","href":"/reference/commands/dialog"},{"title":"visualDiff","href":"/reference/commands/visual-diff"}]},{"group":"Connectivity","pages":[{"title":"offline","href":"/reference/commands/offline"},{"title":"online","href":"/reference/commands/online"}]},{"group":"Scripts","pages":[{"title":"javascript","href":"/reference/commands/javascript"}]},{"group":"Control flow","pages":[{"title":"if","href":"/reference/commands/if"},{"title":"module","href":"/reference/commands/module"}]}]},{"group":"Mobile","icon":"mobile-screen","pages":[{"group":"Overview","pages":[{"title":"Mobile commands","href":"/reference/mobile-commands/index"}]},{"group":"AI","pages":[{"title":"act","href":"/reference/mobile-commands/act"},{"title":"assert","href":"/reference/mobile-commands/assert"},{"title":"assertVisually","href":"/reference/mobile-commands/assert-visually"},{"title":"extract","href":"/reference/mobile-commands/extract"}]},{"group":"Interactions","pages":[{"title":"tap","href":"/reference/mobile-commands/tap"},{"title":"type","href":"/reference/mobile-commands/type"},{"title":"swipe","href":"/reference/mobile-commands/swipe"},{"title":"scrollTo","href":"/reference/mobile-commands/scroll-to"},{"title":"dragAndDrop","href":"/reference/mobile-commands/drag-and-drop"}]},{"group":"Device","pages":[{"title":"press","href":"/reference/mobile-commands/press"},{"title":"pressKey","href":"/reference/mobile-commands/press-key"},{"title":"rotate","href":"/reference/mobile-commands/rotate"},{"title":"toggleSettings","href":"/reference/mobile-commands/toggle-settings"},{"title":"openNotifications","href":"/reference/mobile-commands/open-notifications"}]},{"group":"Apps","pages":[{"title":"openApp","href":"/reference/mobile-commands/open-app"},{"title":"killApp","href":"/reference/mobile-commands/kill-app"},{"title":"installApp","href":"/reference/mobile-commands/install-app"},{"title":"uninstallApp","href":"/reference/mobile-commands/uninstall-app"}]},{"group":"Screen checks","pages":[{"title":"checkScreenContains","href":"/reference/mobile-commands/check-screen-contains"},{"title":"checkScreenDoesNotContain","href":"/reference/mobile-commands/check-screen-does-not-contain"}]},{"group":"Element checks","pages":[{"title":"checkElement","href":"/reference/mobile-commands/check-element"},{"title":"checkElementAttribute","href":"/reference/mobile-commands/check-element-attribute"},{"title":"checkElementContent","href":"/reference/mobile-commands/check-element-content"},{"title":"checkElementName","href":"/reference/mobile-commands/check-element-name"},{"title":"checkElementStyle","href":"/reference/mobile-commands/check-element-style"}]},{"group":"Visual","pages":[{"title":"visualDiff","href":"/reference/mobile-commands/visual-diff"}]},{"group":"Network","pages":[{"title":"request","href":"/reference/mobile-commands/request"}]},{"group":"Scripts","pages":[{"title":"javascript","href":"/reference/mobile-commands/javascript"},{"title":"adb","href":"/reference/mobile-commands/adb"},{"title":"appium","href":"/reference/mobile-commands/appium"}]},{"group":"Files","pages":[{"title":"addFile","href":"/reference/mobile-commands/add-file"}]},{"group":"Media","pages":[{"title":"setCamera","href":"/reference/mobile-commands/set-camera"},{"title":"clearCamera","href":"/reference/mobile-commands/clear-camera"},{"title":"setMicrophone","href":"/reference/mobile-commands/set-microphone"},{"title":"clearMicrophone","href":"/reference/mobile-commands/clear-microphone"}]},{"group":"Waits","pages":[{"title":"wait","href":"/reference/mobile-commands/wait"}]},{"group":"Control flow","pages":[{"title":"if","href":"/reference/mobile-commands/if"},{"title":"module","href":"/reference/mobile-commands/module"}]},{"group":"Debugging","pages":[{"title":"debugState","href":"/reference/mobile-commands/debug-state"}]}]}]},{"tab":"API reference","icon":"code","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"tab":"Changelog","icon":"list-timeline","pages":[{"title":"Changelog","href":"/changelog"}]}]},"title":"select - Momentic","buildId":"dpl_3DJU2xKhT5gDPFQL5Tqv7AFnkWsF","deploymentId":"dpl_3DJU2xKhT5gDPFQL5Tqv7AFnkWsF","dynamics":[],"chunks":[]}