class Playwright::Page
def select_option(
page.select_option("select#colors", value=["red", "green", "blue"])
# multiple selection
page.select_option("select#colors", label="blue")
# single selection matching both the label
page.select_option("select#colors", "blue")
# Single selection matching the value or label
```python sync
**Usage**
Triggers a `change` and `input` event once all the provided options have been selected.
Returns the array of option values that have been successfully selected.
If the target element is not a `
def select_option( selector, element: nil, index: nil, value: nil, label: nil, force: nil, noWaitAfter: nil, strict: nil, timeout: nil) wrap_impl(@impl.select_option(unwrap_impl(selector), element: unwrap_impl(element), index: unwrap_impl(index), value: unwrap_impl(value), label: unwrap_impl(label), force: unwrap_impl(force), noWaitAfter: unwrap_impl(noWaitAfter), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout))) end