browser_select_option
Enable selection of one or multiple options in a dropdown on web pages using Playwright automation. Specify the target element and values to interact with the dropdown programmatically via structured snapshots.
Instructions
Select an option in a dropdown
Input Schema
Name | Required | Description | Default |
---|---|---|---|
element | Yes | Human-readable element description used to obtain permission to interact with the element | |
ref | Yes | Exact target element reference from the page snapshot | |
values | Yes | Array of values to select in the dropdown. This can be a single value or multiple values. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"element": {
"description": "Human-readable element description used to obtain permission to interact with the element",
"type": "string"
},
"ref": {
"description": "Exact target element reference from the page snapshot",
"type": "string"
},
"values": {
"description": "Array of values to select in the dropdown. This can be a single value or multiple values.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"element",
"ref",
"values"
],
"type": "object"
}