68

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.

Community
  • 1
  • 1
dayuloli
  • 15,013
  • 15
  • 63
  • 111

5 Answers5

36

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

//*[@class="item"]

informatik01
  • 15,636
  • 10
  • 72
  • 102
dayuloli
  • 15,013
  • 15
  • 63
  • 111
15

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

Amauri
  • 500
  • 3
  • 15
5

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

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

innomerphey
  • 121
  • 2
  • 5
0

This seems like it might be a bug. You can report it on http://crbug.com.

If you were to search for 'item' you should be able to find the elements that have the class item on them.

jaredwilli
  • 11,144
  • 5
  • 40
  • 40
0

Dayuloli's fix is a good one, you can also just search for "item" although that won't work if there are multiple classes on that element.

Ben Crook
  • 549
  • 8
  • 15