Capture a CSS Selector or XPath
Use CSS Selector or XPath to locate an element or resource that you want to collect performance data on in a web page.
Before you begin
The value applied is the value of the element within the DOM node after stripping out everything except number characters.
Open the page in a browser (for
example, Chrome), right-click the element that you want to capture, and select
Inspect to open the developers tools.
From the Elements tab,
right-click the element and select either Copy > Copy
selector or Copy XPath.
To view the value of the
element, click Console. After the prompt, type $, select the
element in the pop up, and press Enter.
Expand the element, until you see the innerHTML value.