Forum Discussion

lucieneven's avatar
lucieneven
Contributor
14 years ago

ambiguous recognition of the tested object, IEXPLORE1

Hello,



This is a question about "ambiguous recognition of the tested object". We noticed this warning when TestExecute excuted the script. As can be seen from 2011-12-09 1-52-14 PM.png



There are several objects in the system that match the recognition attributes of the "IEXPLORE1" mapped object. This may cause the "Object not found" error.



Objects

Sys.Process("IEXPLORE")

Sys.Process("IEXPLORE", 2)



To solve the problem, you may need to modify mapping settings for the "IEXPLORE1" object or one of its parent objects.



To debug this, we backed to the TestComplete. Firstly we verified that Aliases.IEXPLORE1.dlgMessageFromWebpage does exist, as can be seen from 2011-12-09 2-01-25 PM.png.



Secondly, we invoked the Object Spy, and verified that the MappendName is correct, as can be seen from 2011-12-09 2-03-54 PM.png



Till now, we have no idea what else we can check.



One thing we don't understand is this project runs normally on the machine where TestComplete is installed, but has problem now on the machine where TextExecute is installed. Both machine are 64bit. I mean it should be the same environment.



btw, we don't have experience to modify mapping settings for the "IEXPLORE1" object. So can you advise what this error means and what we can investigate more here,



thanks,



Lucien

6 Replies

  • Hello,



    In order to isolate the problem, i just recorded a small test case and i can reproduce this issue when launching the IE browser in both 32bits or 64bits. So for some reason, problem doesn't happen to the machine where TestComplete is installed, but happen to the machine where TestExecute is installed.



    Indeed, the case is user click the Remove button, and invoke another dialogue, as can be seen from 2011-12-09 2-33-53 PM.png.



    I guess that's reason why TestExecute see two objects (Sys.Process), maybe TestExecute think the popup dialgue as another process...



    That's all what i can find, although i can't figure out why the machine where TestComplete is installed doesn't have this issue. Please shed some light here,



    Thanks,



    Lucien


  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    If you're using IE 7, 8, or 9, when internet explorer runs, it actually spawns multiple processes.  There are more than one IEXPLORE process in memory.



    This is a common "problem" with automating using IEXPLORE with this because there's no nice neat way of knowing how many processes will spawn and which one will have the page you're looking for.



    Somewhere up here is a link that describes how to turn off that feature of IE so that you'll only get one process.
  • Thank you Robert.



    It's annoying. When it comes to a link that "describes how to turn off that feature of IE so that you'll only get one process", can you give a couple of keywords? I try to search, read the articles like "Web Testing and Tabbed Browsers". Haven't any hint here.



    Please help here, cause we're blocked and no way to get out.



    Best Regards,



    Lucien
  • I am running into the same issue with keyword tests/scripts that I have recorded on one workstation and then run on another using IE8. 



    Lucien - How did you resolve this error?
  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    Follow the steps in the Tip section from the link above and record your tests again.