Return the first selected option or the currently selected option.
(self)
| 53 | |
| 54 | @property |
| 55 | def first_selected_option(self) -> WebElement: |
| 56 | """Return the first selected option or the currently selected option.""" |
| 57 | for opt in self.options: |
| 58 | if opt.is_selected(): |
| 59 | return opt |
| 60 | raise NoSuchElementException("No options are selected") |
| 61 | |
| 62 | def select_by_value(self, value: str) -> None: |
| 63 | """Select all options that have a value matching the argument. |
nothing calls this directly
no test coverage detected