The above is the reason for the error. To “fix” this, you have to ensure your textbox is ready to take your information. So,
- did you give enough time for the page to form, maybe use
WebUI.waitForPageLoad(10)beforehand. - do you have some other element overlapping the textbox just before your setText statement, such as a Calendar GUI. For this, you may have to click elsewhere to have the GUI disappear beforehand. (Note: I don’t see a statement that another element would get the focus, so this is not likely in this case.)
- do you have to select some other element before the textbox is active. For this, you may have to click on the other element to set up the textbox beforehand.
Start with those and if none work for you, then we need more information such as the HTML.
Edit: You are not using the same application as the one in the link, however, I was thinking you may have the same issue as per my #1 issue above.
Edit2: So I went to a NextGen HC login site and tried to login with your setText adding my suggestion to add WebUI.waitForPageLoad(10) and it wasn’t enough time to get the login panel to form. I also had to add a WebUI.delay(2). This was enough to get the setText for the username to work correctly and I had no issue with the password as the panel was now formed.
Edit3: Instead of WebUI.delay(2), you can try:
WebUI.waitForElementVisible(findTestObject('Object Repository/SecurityAccessGroup/Page_Quotes/input_Owner'), 10)