cancel
Showing results for 
Search instead for 
Did you mean: 

Object texboxUserName does not exist

SOLVED
Saimahm
Occasional Contributor

Object texboxUserName does not exist

Hi

 

I have recorded a KeywordTest and I am getting error

The object texboxUsername does not exist, this object do exist and I was able to login into the application

after logging in, on the first page I get this error while I am trying to run the test.

 

Thank you

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Object texboxUserName does not exist

It frequently happens that test is executing faster than the object loads, so that TestComplete is looking for the object just before it actually exists.  

 

The best thing to do is to have your test wait and make sure the object exists before it tries to use the object.  Here are some ways to do that.  

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/waitch...

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-property-value.html

View solution in original post

2 REPLIES 2
Marsha_R
Community Hero

Re: Object texboxUserName does not exist

It frequently happens that test is executing faster than the object loads, so that TestComplete is looking for the object just before it actually exists.  

 

The best thing to do is to have your test wait and make sure the object exists before it tries to use the object.  Here are some ways to do that.  

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/waitch...

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-property-value.html

View solution in original post

sonya_m
Community Manager

Re: Object texboxUserName does not exist

Thanks a lot Marsha!

 

@Saimahm Does the suggestion help?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors