Hey ya’ll, for my project I need to extract every xPath from a TestObject within my repository, alter it, and slam the new xPaths into a TestObject that lives in memory. Here’s where I’m getting stuck. Code tho:
TestObject to = findTestObject(ObjectID)
to.findXpathValue(‘xpath:link’) // This gets exactly what I need, but I need to ‘know’ the name before hand
to.getXpaths()
Ideally, I’d like to retrieve the xpaths, but I need to know the names of associated with them – unfortunately the last foo gives me this when I print:
[com.kms.katalon.core.testobject.TestObjectXpath@c2db68f, com.kms.katalon.core.testobject.TestObjectXpath@3cc41abc, …]
Is there any way to ‘turn’ this data back into names so I can retrieve the xPaths? .findProperties() gets me something similar as well. Cheers!