How can do automation testing (regression/functional) like we do with selenium on an application build with polymer.js and shadow DOM concept?

85 views
Skip to first unread message

divya kanwrani

unread,
Jul 25, 2016, 3:53:22 AM7/25/16
to Polymer

Guys its really urgent for a project purpose. Can anyone has idea on how can we test application build on polymer.js by integrating shady DOM api on top of selenium. Please note I need to do functional/regression testing.

NOTE:- This is for Safari Browser (MAC OS) and shadow DOM elements is difficult to reach in case of safari/chrome. This is on the basis of what I tried with Selenium WebDriver.

Urging for an urgent help?

Regards, Divya

Chad Killingsworth

unread,
Aug 1, 2016, 3:41:49 PM8/1/16
to Polymer
If you are using shadydom, it should be simple. Selectors for the elements don't cross a shadowdom boundary and so you can write them in your selinium framework of choice (I use nightwatch). If you are trying to write tests that work in both a native ShadowDOM browser as well as one that uses ShadyDOM, that's a little trickier.

Chad Killingsworth
Reply all
Reply to author
Forward
0 new messages