select_option
Select an option from a dropdown by visible text, value, or index using CSS, XPath, ID, name, tag, class, or link locators.
Instructions
Select an option from a dropdown by visible text, value, or index.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>"
},
"name": "select_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Strategy | css |
| by_text | No | ||
| timeout | No | Seconds | |
| by_index | No | ||
| by_value | No | ||
| selector | Yes | Locator value |