Hi,
I’m a new here. Could someone please help me.
There is a text on a webpage injected by angural script. I would like to get text and verify if it matches.
I try to do it by
WebUI.verifyMatch(WebUI.getAttribute(WebUI.executeJavaScript(‘document.getElementsByName(‘firstName’)[0].value’, null)), ‘Username’, true)
But getting an error
Reason:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.getAttribute() is applicable for argument types: (null) values: [null]
Possible solutions: getAttribute(com.kms.katalon.core.testobject.TestObject, java.lang.String), getAttribute(com.kms.katalon.core.testobject.TestObject, java.lang.String, com.kms.katalon.core.model.FailureHandling)
at accountSettings-firstName.run(accountSettings-firstName:71)
How can I verify the text here, please?