Forum Discussion

tuncc's avatar
14 years ago

Error: "Unable to find an object with the name ...."

I am getting "Unable to find an object with the name Aliases.ieexplore.pageGruplar.................textboxUserNameedit" error while trying to record a property checkpoint in a simple test. I've tried this on Windows XP SP3 with IE8 and TestComplete v 7.0. I am testing a java-based web application and try to compare the actual and expected value of an input field like a registered user name etc. I drag the finder tool onto the control value and click Next then take this error. 



I would really appreciate if someone help me with this error.

Thanks for your assistance,



Canan

1 Reply



  • Hello Canan,


    The 'Unable to find the object' message indicates that something has changed in the tested application, and its state differs from that it was in during the test recording or creation. Various reasons can cause this error. The Handling the 'Unable to Find the Object' Error help topic explains how to diagnose and resolve the error. 






    Besides that, the issue can be caused by the following specifics of web application testing:


    a) The respective web page could not be fully loaded, and thus, the needed editor is not available yet. In this case, you need to wait for the page before addressing the objects. See Waiting For Web Pages topic. 




    Note: This and other on-line helps topic relate to the most recent TestComplete 9. In this version, web testing was significantly improved, namely, the way of addressing the browser process and web pages. To obtain the tested web page in TestComplete 7 instead of
    page = Sys.Browser().Page("http://example.com/")
    you need to use
    page = Aliases.ieexplore.pageGruplar
     



    b) Internet Explorer 8 may launch several instances of itself displaying each opened web-page in an individual instance of the iexplore.exe process. At that, the exact instance your page is displayed in may vary from one run to another. To learn more about this behavior and how TestComplete reflects the structure of IE8 processes, see the Internet Explorer ver. 8 subsection of the Web Testing and Tabbed Browsers article.






    Regards.