Dynamic Object Creation

TestObject dynamicObject = new TestObject().addProperty(“xpath”, ConditionType.EQUALS, xpath)
WebUI.setText(dynamicObject, inputValue)

I was able to set text in text fields using above lines of code but I am not able to click on Objects using:

TestObject dynamicObject = new TestObject(‘dynamicObject’).addProperty(‘xpath’, ConditionType.EQUALS, xpath)

WebUI.click(dynamicObject, xpath)

Can you please help me to get it resolved ? Is above approach/Syntax is correct ?


WebUI.click takes only TestObject (and/or FailureHandling as optional param). Thus try this:


1 Like


above suggestion worked for me

2 posts were split to a new topic: How to use ConditionType