Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Dev Tools - search in html doc not working with equal sign and quotation mark in between [duplicate]

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:

enter image description here

Even if I search for class=, only text within HTML comments are found. Thanks in advance for any help you are able to provide.

like image 491
dayuloli Avatar asked Mar 19 '14 06:03

dayuloli


People also ask

How do I search HTML elements in Chrome?

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.

How do I search inspect element in HTML?

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.

How do I search for elements in dev tools?

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.

How do I search inspect element in Chrome?

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.


3 Answers

I searched for the XPath of the element instead and it worked:

//*[@class="item"]

like image 179
dayuloli Avatar answered Sep 20 '22 13:09

dayuloli


Late answer but pretty sure .item would've worked.

like image 39
Amauri Avatar answered Sep 19 '22 13:09

Amauri


Search bar only supports string, CSS selectors or XPath selectors.

I recommend you use CSS selectors: [class="item"]

like image 24
innomerphey Avatar answered Sep 19 '22 13:09

innomerphey