[R-pkgs] shadowr: Selenium plugin to manage multiple levels of shadow elements on web page
ric@rdo@i@@doit m@iii@g oii outiook@com
ric@rdo@i@@doit m@iii@g oii outiook@com
Wed May 25 08:58:21 CEST 2022
Dear R users,
I am happy to announce that my new package shadowr is now available on
CRAN.
The package enables to use the shadow selenium plugin<https://github.com/sukgu/shadow-automation-selenium> to manage multi level shadow DOM elements on web page.
Shadow DOM is a web standard that offers component style and markup encapsulation.
It is a critically important piece of the Web Components story as it ensures that a component will work in
any environment even if other CSS or JavaScript is at play on the page.
The problem is that Custom HTML tags can�t be directly identified with selenium tools.
If you just need to click a cookie accept button and if there is only a one level shadow dom structure,
you could just copy the js path and let the selenium driver execute this js code.
For details and examples please check out the github page.
But when you have a multi level shadow dom structure and have to do different things with the elements like get the text or click them,
sooner or later things get complicated.
You would have to handle a lot of long strings and depending on the action and amount of elements also modify/extend the strings.
Shadowr enable R users a more comfortable and reliable way to work with shadow dom elements.
https://cran.r-project.org/web/packages/shadowr/index.html, README file on CRAN page
https://cran.r-project.org/package=shadowr or blog article https://www.shadowr.org/.
Best regards,
Ricardo Landolt
[[alternative HTML version deleted]]
More information about the R-packages
mailing list