Raise exception if special attribute could not be set

This commit is contained in:
sebthom
2022-03-12 12:37:43 +01:00
parent e213e8dd17
commit 1d5fc64f8d
2 changed files with 19 additions and 19 deletions

View File

@@ -283,6 +283,7 @@ class SeleniumMixin:
:param timeout: timeout in seconds
:raises NoSuchElementException: if element could not be found within time
:raises UnexpectedTagNameException: if element is not a <select> element
"""
elem = self.web_await(EC.element_to_be_clickable((selector_type, selector_value)), timeout, NoSuchElementException)
Select(elem).select_by_value(selected_value)