How to use angular script

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?

This is badly broken.

Read this topic and try to understand what’s expected of the method (API)

In short, you don’t need WebUI.executeJavaScript() but you do need findTestObject() which your code doesn’t mention.

I would also suggest you watch the help videos here:

https://docs.katalon.com/katalon-studio/videos/index.html