There are some tools to identify the elements
2. IE DebugBar
3. Google Chrome Developer Tools
Firebug: Firebug mostly used by web developers, as it allows developers to find elements on the page by using the find functionality.
IE DebugBar: This is an add-on for IE. It also has many features like Firebug.
Google Chrome Developer Tools: This is not like IE or Firefox Google chrome developer tools are built-in to the browser and will also allow you to find the elements on the page and be able to work out its XPath.
Interested in mastering Selenium Training? Enroll now for FREE demo on Selenium Training.
Firebug is an Add-on for Firefox.
To Install Firebug Open https://getfirebug.com/in Firefox.
Click on Install Firebug
Click on the link “Firebug 1.6 for FireFox 3.6”
Click on Install Now
Get a message “Restart Firefox to complete your changes.” Click on “Restart
After Restarting the browser, open www.google.com
Right-click on any element, we will get Inspect Element option shown below:
Click on Inspect Element, we will get locators of that element shown as below:
Madhuri is a Senior Content Creator at MindMajix. She has written about a range of different topics on various technologies, which include, Splunk, Tensorflow, Selenium, and CEH. She spends most of her time researching on technology, and startups. Connect with her via LinkedIn and Twitter .