selene icon indicating copy to clipboard operation
selene copied to clipboard

shadow dom support

Open yashaka opened this issue 5 years ago • 4 comments

reference:

  • https://github.com/KnowledgeExpert/selenidejs/pull/130/files
  • and probably something from here
    • https://github.com/KnowledgeExpert/selenidejs/pull/129/files

yashaka avatar Oct 06 '20 07:10 yashaka

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 avatar Jan 09 '21 10:01 aleksandr-kotlyar

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

aleksandr-kotlyar avatar Jan 31 '21 16:01 aleksandr-kotlyar

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

yashaka avatar Dec 26 '22 20:12 yashaka