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]]

_______________________________________________
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to