{"id":4625,"date":"2014-03-20T14:52:08","date_gmt":"2014-03-20T18:52:08","guid":{"rendered":"http:\/\/www.webperformance.com\/load-testing-tools\/blog\/?page_id=4625"},"modified":"2014-06-13T11:20:11","modified_gmt":"2014-06-13T15:20:11","slug":"how-inspect-element-browser","status":"publish","type":"page","link":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/real-browser-manual\/building-a-testcase\/how-inspect-element-browser\/","title":{"rendered":"How to inspect an element in the browser"},"content":{"rendered":"<p>When you need more information about an element (typically, to determine how to locate it on the page), the developer tools in the browser can be a great help. These are generally well documented, but here is a start.<\/p>\n<h1>Chrome<\/h1>\n<ol>\n<li>Press F12 to open the Developer Tools in Chrome<\/li>\n<li>Press the magnifying-glass (<img decoding=\"async\" alt=\"\" src=\"https:\/\/developers.google.com\/chrome-developer-tools\/docs\/dom-and-styles-files\/images\/inspect-icon.png\" width=\"27 height=\" \/>) and then select the element on the page by clicking on it<\/li>\n<li>The Elements tab will now show the selected element<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2014\/03\/ElementsTab.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"ElementsTab\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2014\/03\/ElementsTab.png\" width=\"517\" height=\"197\" \/><\/a><\/p>\n<p>Double-clicking attributes of the element will allow you to copy the value and paste it into Load Tester (for example, to configure an Element ID locator).<\/p>\n<p>Left-clicking the element will bring up a menu that includes the ability to generate an XPath for the element (to configure an XPath locator).<\/p>\n<p>For more details, consult the Chrome Developer Tools documentation. I&#8217;ll suggest starting on <a href=\"https:\/\/developers.google.com\/chrome-developer-tools\/docs\/dom-and-styles\">this page<\/a> and read until they start describing how to edit elements (editing rarely useful for\u00a0 load testing).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you need more information about an element (typically, to determine how to locate it on the page), the developer tools in the browser can be a great help. These are generally well documented, but here is a start.<br \/>\nChrome<\/p>\n<p>Press F12 to open the Developer Tools in Chrome<br \/>\nPress the magnifying-glass () and then select the element on the page by clicking on it<br \/>\nThe Elements tab will now show the selected element<\/p>\n<p><a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2014\/03\/ElementsTab.png\"><\/a><br \/>\nDouble-clicking attributes of the element will allow you to copy the value and paste it into Load Tester (for example, to configure an Element ID locator).<br \/>\nLeft-clicking the element will bring &hellip; <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/real-browser-manual\/building-a-testcase\/how-inspect-element-browser\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":4859,"menu_order":2,"comment_status":"open","ping_status":"open","template":"manual-page.php","meta":{"footnotes":""},"class_list":["post-4625","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/comments?post=4625"}],"version-history":[{"count":1,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4625\/revisions"}],"predecessor-version":[{"id":4626,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4625\/revisions\/4626"}],"up":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4859"}],"wp:attachment":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/media?parent=4625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}