Ask a Question

Unable to find object

DamianHealey
New Contributor

RE: Unable to find object

I will re-phrase my last response.



When the commented code is made active it causes my test to fail. The commented code functions correctly - all it does is invoke a new page.



It would be pointless sending the code as you would need our application installed to test it, I would prefer to get it resolved in house.

RE: Unable to find object

Hi Damian,




I need to know the exact error message and the content of the Remarks page for this message. Also, I need to know what exact line generates this error message. Could you please provide me with this information?

--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
DamianHealey
New Contributor

RE: Unable to find object

I have found the error a delay is required in what appears to be unrelated code

FYI here are the details





Here is the relevant
section of the working code (see workingcode.jpg)





This test works







Now using the following code (see failing_code.jpg)







Causes the test to fail if the Delay(5000) is not used







RE: Unable to find object

Hi Damian,




I think that, when the 'Insert Sales Order' button is clicked by the problematic line, a new page is loaded. Although there is a delay in 10 seconds, this time can be not enough for the page to be completely loaded, and therefore, TestComplete tries to work with the page before it is ready. Call the Page.Wait method after navigating to a new page to make TestComplete wait until the page is completely loaded. You can find more information in the 'Page.Wait' and 'Waiting For Page' help topics.

--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: