yashaka / selene

User-oriented Web UI browser tests in Python
https://yashaka.github.io/selene/
MIT License
677 stars 145 forks source link

shadow dom support #228

Open yashaka opened 3 years ago

yashaka commented 3 years ago

reference:

aleksandr-kotlyar commented 3 years ago

Found same feature request earlier #214

As known selenide has shadow dom support starting from version 5.10.0 It would be great to implement the same feature in selene.

selenide/selenide#1090

fixes: selenide/selenide#1129

I suggest one of them can be closed.

aleksandr-kotlyar commented 3 years ago

Selenide 5.18.0 has released recursive search in shadow-dow which is faster than it has before. Can be helpful and useful in selene too. News here: https://selenide.org/2021/01/23/selenide-5.18.0/ PR here: https://github.com/selenide/selenide/pull/1373 Script here: https://github.com/selenide/selenide/blob/master/src/main/resources/find-in-shadow-roots.js

yashaka commented 1 year ago

this feature needs some kine of "js selectors", let's think on allowing something like browser.element('js:document.querySelector(".foo")'), etc...

yashaka commented 1 month ago

Changed label from 2.0-mandatory to 2.0-desired, because the main support is already provided... And next items are "a plus" not "a must" from now:

So, they can be implemented even after 2.0