Hi all,
i am newbie in using Katalon and facing an issue while trying to get XPath from web object. Below, a part of the code.
In fact, XPath of the object contains a numeric value i need to extract to work on another element of the page “(//div[@id=‘plats-36427’]/dd/div)” where 36427 is the numéric value i want to extract.
TestObject to_Plate = new TestObject(‘objectName_Plate’)
to_Plate.addProperty(‘tag’, ConditionType.EQUALS, ‘div’)
to_Plate.addProperty(‘class’, ConditionType.EQUALS, ‘input-box’)
to_Plate.addProperty(‘text’, ConditionType.CONTAINS, plate)sProperty = WebUI.getAttribute(to_Plate, “xpath”)
Tks in advance pour your help.
Arnaud