Install WebDriver Element Locator Add-On To Get XPath Of Element Easily

As y'all know, XPath Is most Important chemical ingredient locator to automate y'all spider web application using selenium WebDriver. There are many other locators are likewise available In WebDriver but If y'all don't know virtually XPath locator together with hence It volition hold upwards really difficult for y'all to laid upwards WebDriver exam cases. Earlier nosotros learnt how to detect XPath of chemical ingredient manually In THIS POST

Finding XPath manually Is fourth dimension consuming procedure together with WebDriver Element Locator Firefox summation tin lavatory assist y'all to acquire element's XPath really easily. If y'all volition purpose this add together on together with hence y'all create non necessitate to Inspect chemical ingredient using firebug but y'all volition acquire It In but ii clicks. I am using this summation from really long fourth dimension together with It helps me really much hence permit me say y'all how to Install together with purpose It If whatever 1 of y'all desire It. Mean fourth dimension y'all tin lavatory read how to install firebug together with firepath add-ons inwards firefox browser to acquire xpath of whatever chemical ingredient inwards THIS POST.

Steps to download together with Install WebDriver Element Locator Add-On
If y'all accept Installed whatever firefox summation earlier together with hence y'all volition hold upwards good aware virtually Installation process. Ok.. permit me say y'all how to Install It.

  • Open Firefox Browser.
  • Go to https://addons.mozilla.org/en-US/firefox/. You volition sind add-ons search box at occur correct corner of that page.
  • Search for add together on using "WebDriver Element Locator" keyword. It volition exhibit y'all listing of add together on In search result.
  • Click on "Add to Firefox" push of "WebDriver Element Locator" add together on every bit shown In bellow Image.
  • It volition exhibit y'all popup to Install "WebDriver Element Locator" add together on. Click on Install Now push every bit bellow. It volition outset Installing add together on.



  • At the terminate of Installation, It volition exhibit y'all add together on successfully Installed message every bit bellow. That agency add together on Is Installed successfully. You tin lavatory thought Installed add together on at Firefox browser carte du jour -> Tools -> Add ons -> Extension section.

How to acquire Element's XPath using add together on
Now y'all tin lavatory acquire whatever element's XPath In but ii clicks. Follow the steps given bellow to acquire XPath of Google search box.
  • Open http://www.google.com/ In Firefox browser.
  • Right click on Google search text box. It volition exhibit y'all multiple linguistic communication options (C# Locators, Java Locators, Python Locators, Ruby Locators etc.) to acquire xpath syntax of Google search box every bit bellow. You tin lavatory direct linguistic communication every bit per your requirement. I am using Java hence I necessitate XPath string In coffee compatible format.
  • As sown In higher upwards Image, It volition exhibit y'all many XPath syntax for Google searchbox when deed mouse on Java Locators. XPath syntax marked amongst YES sign volition locomote properly In your script hence click on whatever of the XPath syntax to re-create It.
  • Now y'all tin lavatory glue It In your eclipse IDE straight together with purpose It In your script.
This way y'all tin lavatory acquire whatever spider web element's XPath In but ii clicks every bit shown higher upwards using WebDriver Element Locator Add-On.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM

http://www.software-testing-tutorials-automation.com/

1 Comments

Post a Comment
Previous Post Next Post