selectOption
Automate dropdown or select element interactions by specifying a CSS selector and array of values to select in web pages using Playwright-powered browser automation.
Instructions
Select option(s) in a dropdown or select element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
selector | Yes | ||
values | Yes | Array of values to select |
Input Schema (JSON Schema)
{
"properties": {
"selector": {
"type": "string"
},
"values": {
"description": "Array of values to select",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"selector",
"values"
],
"type": "object"
}