In this post, we will see how to resolve Selenium / Accept cookie-window?
Question:i would like to automate the following site: https://atlas.immobilienscout24.de/
using this code:
Instead i allways get this timeout-exception:
Best Answer:The element Alle bestätigen is within #shadow-root (open)
To click on the element Alle akzeptieren you need to use shadow_root attribute and you can use the following locator strategies:
You can find a couple of relevant detailed discussions in:
- How to extract info within a #shadow-root (open) using Selenium Python?
- How to get past a cookie agreement page using Python and Selenium?
If you have better answer, please add a comment about this, thank you!