I have a dropdown menu where I can select hotmail.com
with Selenium. The following code is working:
Select(driver.find_element(By.XPATH, '//*[@id="MemberName"]')).select_by_value('hotmail.com')
But now I want to add WebDriverWait
and expected.conditions
to it to make it more dynamic. But which expected.conditions
should I use?
I guess elementToBeSelected
makes less sense...
I am searching for something like:
Select(WebDriverWait(driver, 15).until(EC.element_to ??? ((By.XPATH, '//\*\[@id="MemberName"\]'))).select_by_value('hotmail.com')
source https://stackoverflow.com/questions/71622659/which-expected-conditions-for-select
Comments
Post a Comment