mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Raise exception if special attribute could not be set
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user