Forum Discussion

dyarwood's avatar
dyarwood
Contributor
12 years ago

Help understanding 'Ambiguous Object Recognition' error

Hi,



I have a series of simple tests that I would like to run a cross-browser test on. 



So, at my project level, on the Test Items tab I have a series of keyword tests:

Set browser

Login

Select tab page

Sort columns

Reset Search 

Logout



I would like to loop that so it runs on IE, FireFox, and then Chrome so I have the steps listed multiple times. The only thing that changes is the Set browser step. I have 3 distinct keyword tests, each of which does a Run Browser command.



This seems easy enough, and it runs thru the first set of steps without a problem (on IE). It reaches the second set of steps, opens Firefox, Logs in, and then it errors out 'ambiguous object recognition' error.



This is the 2nd time I'm calling the select tab page keyword test, why is it failing on the 2nd attempt but not the first?

 

If someone could explain this to me I'd appreciate it. 



Thanks,

David

4 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    Do you close IE before you open Firefox?  I've seen that error when we have two instances of the application under test running, even if one is just in the background.  Make sure IE is really really gone before you start on Firefox and see if that helps.
  • Hi David,



    I've never seen this error you speak of, but do you have the Firefox and Chrome extensions installed?
  • Hi,



    In response to Marsha's question, yes I've repeated my test this morning and made sure the IE is not running prior to launching Firefox.



    In response to Gregory's question about the extensions. Yes, I have both v9 and v10 extensions for both Chrome and Firefox. I tried repeating my test just now after disabling the v9 extensions since I have upgraded to TestComplete v10 and there was no change. I did notice that disabling the v9 Opera Extension caused the v10 to become disabled as well.



    David
  • Ravik's avatar
    Ravik
    Super Contributor
    This error is occured due to multiple browser/multiple instance of same browsers are open. you may used Browser method in your script and passing browser, but not closed your previous browser. if you closed your previous browser it will be work fine.