How can I write relative xpath for Windows Desktop apps

How can I write Relative XPath for Katalon studio using Winappdriver

In selenium I can write
//[@class=‘featured-box’]//[text()=‘Testing’]

But I can see this info through object spy

Hi @mksrqa,

With Windows Test Object, you could choose XPath as the method to find that element by select XPATH in the Locator Strategy select box. And you could edit your XPath by set it to Locator text input.

image


Besides, you could easily select the right XPath by using Generate Locator and Highlight tools in record/spy dialog.

~ Hope this could help /=)