Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13861

Unable to select element from hidden bootstrap dropdown in Selenium (Python)

$
0
0

0

In my project I have to select an item from the hidden bootstrap drop-down, however, I'm unable to select it. I have tried multiple ways but so far nothing works. I searched on YouTube and it was suggested to delete the "blur" option from Event Listener in the console however in Chrome I don't find any such option in the console. Any idea on how to select either item from drop-down will be appreciated.

I have attached a video of the same dropdown. When any item is not selected then this path is visible: input name="machineCondition" type="hidden" xpath="1"

However, once the user click on any machine condition then the same path changes to : input name="machineCondition" type="hidden" value="New machine" xpath="1"[text](Video of the console is attached below

I tried to click on the placeholder and tried to capture the XPATH of the element however I didn't succedded.

I also tried to capture both options using find.elements and store it in list and then run a "for" loop, and click on the element using "if" condition inside the for loop.


Viewing all articles
Browse latest Browse all 13861

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>