Tools are used for inspecting web element
Posted By : Sonali Gupta | 04-Oct-2017
Tools for Inspecting the web element
- Before writing the code, firstly test engineer need to inspect the web element to open the HTML page.
- These tools are used for running the automation scripts.
There are 2 -tools used for inspecting the element
- Using developer tool.
- Using
firebug and file path.
1. Using developer tool:-
- Right-click on the selected web element, click on Inspect option then the HTML page opens with the selected element.
- The test engineer can also press the F12 button of a keyboard, HTML page open from that TE can inspect elements manually, by clicking on element inspector.
- This tool is mainly used in Chrome or Internet Explorer Browser.
- Also, the other way to inspect element in chrome as click on chrome menu select the more tools than click on developer tools.
- Also, there is shortcut keyboard used as Ctrl+Shift+I
2. Using
- Firebug is an add-on for
firefox browser only, which is used to inspect the web element. - Firepath is a third party tool for firebug which is also an add-on for
firefox only. - Firepath is used to write customise XPath and CSS selector.
- Firebug and Firepath tool is mainly used for Firefox Browser.
- By the use of this tool, automation engineer is able to inspect the elements by id, name, XPath (placeholder or attributes), CSS selector, link text, partial link text, class, and tags.
How to install
- Open
firefox browser, click on an open menu. - Click on add-ons.
- Add-ons manager open.
- In add-ons manager, click on the extension.
- Search for firebug.
- Click on install.
- Again search for a file path.
- Click on install.
- Then restart the browser.
- The
firebug andfirepath will installed successfully.
Note:- Both the tools are beneficial for inspecting the elements of a website because of this the automation engineer be able to run the automation scripts.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Sonali Gupta
Sonali is certified in manual testing and selenium web driver. She is a B.Tech through Electronics and Communication.