Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
444 views
in Technique[技术] by (71.8m points)

How to search for shadow-root selector in Chrome DevTools?

I'm using Chrome dev tools to check my css selectors when writing E2E-Tests using Playwright (or Puppeteer).

To verify a selector is valid and can be found I use the cmd+f search-bar in Elements-Tab in DevTools like this:

found selector outside shadow-root

But how can I find selectors inside shadow-root?

no match

Just to make clear: This selector can be found via code. I just can't find it in the DevTools


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...