boa-constrictor icon indicating copy to clipboard operation
boa-constrictor copied to clipboard

Explore Shadow DOM

Open AndyLPK247 opened this issue 4 years ago • 1 comments

Shadow DOM allows hidden DOM trees to be attached to elements in the regular DOM tree. It can be very tricky to handle with test automation. Info about Shadow DOM can be found here: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM.

We should answer these questions:

  • Is Shadow DOM support worth pursuing?
  • Can Boa Constrictor's current Web UI interactions handle Shadow DOM?
  • If not, then can they be updated seamlessly to support Shadow DOM?
  • If not, then how should we handle Shadow DOM?

AndyLPK247 avatar Oct 25 '20 03:10 AndyLPK247

Serenity BDD has a solution for this using Shadow DOM specific By selectors https://github.com/serenity-bdd/serenity-core/pull/2341

I haven't used it personally, but worth a look If you're thinking about implementing

thePantz avatar Jun 07 '21 14:06 thePantz