MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / all_selected_options

Method all_selected_options

py/selenium/webdriver/support/select.py:50–52  ·  view source on GitHub ↗

Return a list of all selected options belonging to this select tag.

(self)

Source from the content-addressed store, hash-verified

48
49 @property
50 def all_selected_options(self) -> list[WebElement]:
51 """Return a list of all selected options belonging to this select tag."""
52 return [opt for opt in self.options if opt.is_selected()]
53
54 @property
55 def first_selected_option(self) -> WebElement:

Callers

nothing calls this directly

Calls 1

is_selectedMethod · 0.80

Tested by

no test coverage detected