Error: Unable to verify object 'Object Repository/Home Page/txtUsername' is visible

My test cases are working fine but, I am getting this error today when I execute my test cases. I even tried to record a new test case and run it just to test if the auto generated steps and test objects by katalon will work.

Error from Test Recorder:

Test Cases/Recorder FAILED.
com.kms.katalon.core.exception.StepFailedException: Unable to double click on object ‘Object Repository/Page_ParaBank Welcome Online Banking/b_Username’

  • at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed*

error from my Test Case:

Test Cases/Login_TC FAILED.


com.kms.katalon.core.exception.StepFailedException: Failed to enter login credentials. Error: Unable to verify object ‘Object Repository/Home Page/txtUsername’ is visible

at com.kms.katalon.core.util.KeywordUtil.markFailed(

at web.LoginKeywords.enterLoginCredentials(LoginKeywords.groovy:76)

1 Like

I’m gathering you are using the web recorder of Katalon Studio. After you move to a new page, you need to add “wait” statements to allow the page to refresh (or even appear) before you rush on with your test scripts. The recorder will not add “wait” statements so you need to add them personally. As an example,

// after move to new page

// ensure the element is available
WebUI.waitForElementVisible(findTestObject('Page_ParaBank Welcome Online Banking/b_Username'), 10)
WebUI.doubleClick(findTestObject('Page_ParaBank Welcome Online Banking/b_Username'))

// and if we click on something and this element appears
WebUI.waitForElementClickable(findTestObject('Home Page/txtUsername'), 10)
WebUI.verifyElementVisible(findTestObject('Home Page/txtUsername'))

You shouldn’t need the waitForElementVisible if your page is fully formed for all elements, but you should test with a “wait” for your first reference.

1 Like