How to write cssSelecotors for ShadowDOM?
- Just inspect the element if it will be inside shadowDOM, it will show “in ShadowDOM” in the SelectorsHub tab.
- To write the cssSelector for any element which is inside shadowDOM, just inspect that element and start typing.
- To verify any cssSelector inside a shadowDOM, first inspect any element inside that shadowDOM in which you want to verify your cssSelector
- Note: shadowDOM supports only cssSelectors and it doesn’t support xpath.


I’m not able to get SelectorsHub on print dialog in Chrome . My extension is updated although
Print dialogues are not part of DOM so it is not possible to write selectors for print dialogue. We can write selectors for web application elements only.