Re: [w3c/webcomponents] [WebDriver] Testability of web components (#771)

I'm in favor of "given an element get me the shadow root" as a WebDriver specific API to reach into any shadow, whether it is open or closed (this should not work on native elements though). Maybe WebDriver can implement this feature directly, just replacing the `Element.attachShadow` before executing any user-land code. This is probably enough to allow a controlled traversing.

I'm not ok with "Find shadow elements". I have seen what that can cause in big apps, and it goes directly against the web component encapsulation, which should also apply to tests and automation IMO.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/771#issuecomment-439106118

Received on Thursday, 15 November 2018 16:41:50 UTC