How to verify all the XPaths of a locator page just in few seconds?

Sanjay Kumar
2 min readSep 20, 2021

Whenever there is a UI change, we have to verify all the XPaths and fix them one by one. It is very much time consuming & tedious task.

As per LinkedIn poll, it used to take more than an hour of time & effort.

Verifying multiple xpath takes more than hours of time

But not anymore, now we can verify multiple XPaths of locators page using SelectorsHub just in few seconds.

Very simple steps to verify multiple XPath of a locators page-

1- Click on Verify multiple XPath button.

SelectorsHub: verify multiple xpath

2- Click on edit button here to paste all xpaths or locators page.

3- Paste the locators page content and set the xpath command.

How to set XPath Command-

Replace xpath by xpathvalue keyword in the command. For ex- FindBy(xpath=”//div”) then enter command as FindBy(xpath=”xpathvalue”) or if xpath is not inside double quotes like FindBy(xpath=//div) then FindBy(xpath=xpathvalue)

4- Click on submit and it will show results for all xpaths.

That’s all :)
Checkout the below video tutorial to learn more about it.

--

--

Sanjay Kumar

Founder and Creator of SelectorsHub, TestCase Studio, TestCaseHub & ChroPath | Speaker | Blogger | Automation Passionate