For example, //a matches all elements but not the letter 'a' within the text content. This allows you to search for specific elements without the conflict of matching words within the text. It is also possible to search via XPaths.
You can cycle backwards through matches using Shift + Enter. Press Up and Down to cycle through suggestions, Tab to choose the current suggestion, then Enter to select the first node with that attribute.
You can search elements by entering a CSS selector.Īs you type, an autocomplete popup shows any class or ID attributes that match the current search term: That allows you to find CSS selectors and XPath expressions occurring within the text. The full text search will always be executed, independently of what you enter. There are three types of searches that are performed automatically depending on what you enter, a full text search, a CSS selector search, and an XPath search. To start searching the markup, click in the search box to expand it or press Ctrl + F, or Cmd + F on a Mac. The Page Inspector's search box matches all markup in the current document and in any frames.