Sorry if I’m missing something obvious, but I’m trying to click on a button only if text of an element on the page is as specific value. I thought this would be straight forward but I must be doing something wrong.
My if statement looks like:
if (WebUI.verifyElementText(findTextObject(‘Object Repository/Umbrella/Invoices/Profile/Profile/Values/td_Exceptions Value’), ‘Expired’)) {
I’ve also tried:
if (WebUI.verifyElementText(findTextObject(‘Object Repository/Umbrella/Invoices/Profile/Profile/Values/td_Exceptions Value’), ‘Expired’) == true) {
in both cases I get back an error like:
Reason:
groovy.lang.MissingMethodException: No signature of method: Script1551633204454.findTextObject() is applicable for argument types: (java.lang.String) values: [Object Repository/Umbrella/Invoices/Profile/Profile/Values/td_Exceptions Value]
If I run the verify element text check by itself I get a message saying they match. I thought when this was evaluated it returned either true or false?
Thanks for any help.