Thanks for the answers
If I do the following:
new_btn = WebUI.modifyObjectProperty(findTestObject(``'Page_Login/btn_Login'``),``'xpath'``,
'equals'``,
'//*[@type=\"button\"]'``, true)
WebUI.click(findTestObject(``new_btn``)) // without quotes
Returns signature error, because findTestObject expects a string
If I do the following:
String new_btn = WebUI.modifyObjectProperty(findTestObject(``'Page_Login/btn_Login'``),``'xpath'``,
'equals'``,
'//*[@type=\"button\"]'``, true)
WebUI.click(findTestObject(``new_btn``))
return the same:
[INFO] – Finding Test object with id ‘Object Repository/new_btn’
[WARNING] – Test object with id ‘Object Repository/new_btn’ does not exist
[INFO] – Finding Test object with id ‘Object Repository/’
[WARNING] – Test object with id ‘Object Repository/’ does not exist
[INFO] – Checking object
[FAILED] – Unable to click on object (Root cause: java.lang.IllegalArgumentException: Object is null)