On this website, there's a div
with the attribute class="item"
. When I clicked F12 to bring up the Developer Tools. I pressed Ctrl + F and typed in class="item"
and no results came back. I also tried Ctrl + Shift + F but nothing returned. Here is a screenshot:
Even if I search for class=
, only text within HTML comments are found. Thanks in advance for any help you are able to provide.
Searching the current HTML You want to perform a text string search on the current HTML page. Routine: From the elements panel, use a keyboard shortcut (win: Ctrl+f, mac: Cmd+f) to open up the search input UI. Enter any text you'd like to be found on the current HTML page.
Just right-click and click Inspect Inspect Element, or press Command+Option+i on your Mac or F12 on your PC. In the search field, you can type anything—ANYTHING—that you want to find on this web page, and it will appear in this pane.
So how do we search a node/element in the DOM Panel? After opening the Chrome Developer Tools, press "Ctrl + f " and open a find bar(as highlighted below) for you in the DOM panel wherein you can enter the search criteria.
One of the easiest ways to inspect a specific web element in Chrome is to simply right-click on that particular element and select the Inspect option. Clicking on the Inspect option from the right-click menu will directly open the Developer tools including the editor, Console, Sources, and other tools.
I searched for the XPath of the element instead and it worked:
//*[@class="item"]
Late answer but pretty sure .item
would've worked.
Search bar only supports string, CSS selectors or XPath selectors.
I recommend you use CSS selectors: [class="item"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With