select_by_text
The command to select an <option> by its text within a <select> dropdown element.
Syntax
Usage
correct usage
incorrect usage
Arguments
text (str)
- The text of the option to select.
Yields
Element - The current instance of Element so you can chain commands.
Examples
Given this HTML
We can select any of the options
See also
Last updated