'How to select a specific option within a ul class in Selenium?
I need to select this specific option called "Activa" within a dropdown options lists:
Here's the webpage code:
<ul class="dropdown-default is-t-big" id="searchOptionsList1">
<!-- <li><a title="" href="#-1">Account</a></li> -->
<li><a title="" href="#A">Activa</a></li>
<li><a title="" href="#C">Cancelada</a></li>
<li><a title="" href="#B">Activa/Cancelada</a></li>
</ul>
I've tried this code select_activa=WebDriverWait(driver,10).until(EC.element_to_be_clickable((By.ID,"searchOptionsList1"))).click()
and It kinda works because it selects option "Cancelada" and I need "Activa"
Any ideas on how to solve this? Thank you so much!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
