If you wish to produce Relative XPath, un-check this option and inspect the I verify it using the Chrome plugin XPath Checker, however it does not always give me the re. By default FirePath produces Absolute XPath.Īs mentioned above by default FirePath keeps “Generate Absolute Path” option enabled. How can I verify my XPathI am using Chrome Developers tool to inspect the elements and form my XPath. – Click on Inspect button and select Search icon as displayed below. To demonstrate an example we will use our own very famous Search button from the right sidebar. Using FirePath in extracting XPath Locator :
As mentioned below you can see “FirePath” option added after “Cookies”. – Now right click on any element and select “Inspect Element with Firebug”. – After you click “Install”, you’ll need to restart the browser.
– In top left corner you will see a fly-out asking you to install the add-on. Once installed you can enable the panel by : Right click anywhere on the screen –> Select option “InspectĬoming back to FirePath, first let’s see how it is installed. Installation of FireBug is simple and similar to FirePath. You can get the Element ID, generate CSS Selectors and DOM locators based on element’s various attributes.ģ) FireBug also provides interface for CSS, DOM, Net and Cookies. In context of Automation, you can highlight the element on which you wish to perform the action. FireBug’s HTML tab gives you the Live interface to view HTML source as many elements are added, updated and removed based on the User action.Ģ) Find and Locate the desired Element : FireBug also gives you the option to inspect the element. So here are some key factors which make FireBug a must have add-on :ġ) Play with Live View Source : Though a browser provides a “View Source” window, but it doesn’t allow you real time HTML source. So we must have Firebug installed in Mozilla Firefox browser.īefore going further into this tutorial it is necessary to understand basic functioning of FireBug. FirePath is a FireBug extension to inspect and generate XPath locator, CSS Selectors and JQuery Selectors.