TestProject Forum
Powered by leading experts in the test automation community

Clicking on Shadow DOM elements are not recognized

While exposing a Webpage having Shadow DOMs with Test Project recording, the identification is not happening. Always it shows Root element in DOM rather than the specific Shadow DOM root. How to handle Shadow DOMs in Test Project.

Hi @alagappan.qa. Can you please elaborate a bit about the element? Is it an iframe? If yes, we have an addon which allows to switch into the iframe content.
Here it is

If not, tell me please the tag name of this element and if possible, also, provide it’s screenshot from the DOM

The web page is created using Polymer.js and it extensively uses Shadow DOM. Attached the image of the Developer console as well as the public site which uses Shadow DOM in their pages (https://shop.polymer-project.org/)