Turn your manual testers into automation experts! Request a DemoStart testRigor Free

testRigor Locators

What is testRigor locator?

testRigor locator is a way to describe finding elements from an end-user’s perspective. You, as a human, can rely on a human’s way of referring to elements like sections, relative locations, tables, etc.

For example, you can say things like:
enter "Peter" into "First Name" in "From" section
or
check that table at the row containing stored value "generatedId" and column "Status" contains "Processed"

This is a radically different way to refer to elements compared to traditional ways like XPath and CSS Selectors. And it reflects end-user’s way of doing it.

Why testRigor locator is better than XPath and CSS Selector?

It is better because it does not rely on details of implementation. And, therefore, would require orders of magnitude less test maintenance compared to anything that uses anything related to how page/screen is coded. You won’t need to change your tests if there is a new rendering library or it now looks different.

But what about id/data-test-id?

Both id and data-test-id attributes are still details of implementation. Engineers might not always have the bandwidth or even a way to set these parameters. And if they do, there are no guarantees that they won’t change in the future.

Think about migrating from Angular to React or using a responsive library to render tables vs coding tables with tr/td format. You can read more about testing tables in how to automate testing tables and in how to test tables documentation.

Where do I use testRigor locators?

You can use testRigor locators in testRigor. And, great news, it is absolutely free!

You can find more information about testRigor locators in the documentation here.

Related Articles

When to Stop Testing: How Much Testing is Enough?

“Keep testing till you get 100% coverage.” “Test till you don’t find any bugs.” “Test until every single line of ...

What is Performance Testing: Types and Examples

As technology advances, application performance is one of the parameters that determines user satisfaction and business success. ...

How to Choose the Best Automation Testing Tool?

Automated software testing describes the process of executing, reporting, and driving tests in an automated manner, using some ...
Privacy Overview
This site utilizes cookies to enhance your browsing experience. Among these, essential cookies are stored on your browser as they are necessary for ...
Read more
Strictly Necessary CookiesAlways Enabled
Essential cookies are crucial for the proper functioning and security of the website.
Non-NecessaryEnabled
Cookies that are not essential for the website's functionality but are employed to gather additional data. You can choose to opt out by using this toggle switch. These cookies gather data for analytics and performance tracking purposes.