extension icon indicating copy to clipboard operation
extension copied to clipboard

How to create a CSS selector?

Open Tony20221 opened this issue 2 years ago • 1 comments

How to create a CSS selector? I didn't find anything in the docs about this? Which selector in Devtools? Any selector Chrome selector?

Tony20221 avatar Jun 12 '22 06:06 Tony20221

All css selectors are supported, they have the same syntax across all browsers.

You can use Chrome DevTools to inspect an element. Look for id, class attributes or combinations of the two to create a css selector uniquely identifying the html element you want to extract content from.

You can test the selector in the DevTools Console tab by typing / executing something like document.querySelectorAll("body") (replace body with your own selector). The console will return all html elements matching the given css selector.

a1sabau avatar Jun 13 '22 18:06 a1sabau