Ruto

Find XPath and Locators

XPath, also known as XML path is query language for selecting nodes from an XML or an HTML document and it was designed by W3C (World Wide Web Consortium). Well, for all those who are working in test automation for web applications would know this.

Writing an XPath is pretty time consuming and for the real-time scenario, it is almost not the desired way for professionals as well as managers because it consumes a lot of time and affects the production.

But to find a web element in the DOM (browser) locators and XPath are needed, and how about we get Selenium locators and XPath without inspecting an element or opening the DOM?

The Traditional Way

Let’s just know how it’s been used in the initial days, automation testers were writing the XPath and Selenium locators manually. To find the locator, a tester needs to inspect an element and choose a locator following by checking it for its uniqueness in the entire DOM, which takes a lot of time and sometimes can go erroneous as it is done manually. Sometimes if the DOM is complex then it takes more time to come up with a unique XPath.

Ruto – The XPath Finder

Ruto helps to find unique Selenium locators and XPath in milliseconds.

For automation testers, Ruto would come in handy while writing test case scripts. All a person needs to do is, just right click on the element you want to find the locator or XPath and click on the ‘add to Ruto’ option, which will append the element to Ruto and can be viewed by clicking on the extension where you can select from the list of options available.

One of the specialties about Ruto is that it can even generate the entire code snippet and copy/paste it to the code editor. Altogether, it will not take more than a minute to produce a XPath for test automation, get Ruto to experience speed automation.

Where it can be used?

Ruto supports for Selenium and Protractor test automation, so if anyone working in web automation and Angularjs web application automation then Ruto would be much more helpful to write test cases using the locators found by Ruto as well as the XPath generated by it.

The free Chrome extension will sure save your automation time as you don’t need to type or spend a lot of time writing it from scratch.

Ruto Roadmap - Q1 - 2020

Multiple code generation (DONE)

  1. Code snippets for Python, JS, and C#
  2. Angular specific locator (Protractor)
  3. XPath suggestions based on user selection history
  4. Option to include and exclude XPath pattern
  5. Option to include or exclude element attribute in XPath and lot more!

Features

  • Id
  • ClassName
  • Name
  • Link text
  • Partial Link text
  • Attribute based XPath
  • Collections based XPath
  • Contains - Attribute based XPath
  • Text based XPath
  • Starts-With Text based XPath
  • Contains text based XPath
  • Normalize text based XPath
  • Following element based XPath
  • Following-Sibling based XPath
  • Relation based XPath - (Update from V5.0)
  • Other patterns as well!