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

Method _set_selected

py/selenium/webdriver/support/select.py:225–229  ·  view source on GitHub ↗
(self, option)

Source from the content-addressed store, hash-verified

223 raise NoSuchElementException(f"Could not locate element with visible text: {text}")
224
225 def _set_selected(self, option) -> None:
226 if not option.is_selected():
227 if not option.is_enabled():
228 raise NotImplementedError("You may not select a disabled option")
229 option.click()
230
231 def _unset_selected(self, option) -> None:
232 if option.is_selected():

Callers 3

select_by_valueMethod · 0.95
select_by_indexMethod · 0.95

Calls 3

is_selectedMethod · 0.80
is_enabledMethod · 0.80
clickMethod · 0.65

Tested by

no test coverage detected