Forum Discussion

e_hatami-alamda's avatar
e_hatami-alamda
New Contributor
12 years ago

Testcomplete 8.7 "CallObjectMethodAsync" does not working with IE9

Hi, Recently I have upgraded the IE from IE8 to IE9 on my testing server. I am trying to run testcomplete 8.7 on IE9. However on the click event, TC 8.7 throws an exception which says: "The object invoked has disconnected from its clients" . Can anyone help??



P.s,  consider I am using this expression to fire click event:



"Set CallResultObj = Runner.CallObjectMethodAsync(objForAction, strMethod)"



where strMethod is "Click" and objForAction is my object should be clicked. 

3 Replies

  • karkadil's avatar
    karkadil
    Valued Contributor
    Most probably you have this problem because CallObjectMethodAsync isn't supposed to be used with methods provided by TestComplete, not the tested application itself. Here is a quotation from help:



    It is not recommended to use this method to perform asynchronous calls to methods provided by TestComplete (that is, to methods that are provided by TestComplete but not by the application under test).



    http://support.smartbear.com/viewarticle/31754/
  • thanks for the reply. well the thing I dont understand is how the function is working with IE8 but not IE9? even I change the document mode of my IE9 to IE8 and no problem it is working.. is it something wrong with compatibility issue of TC8.7 with IE9 or am I missing something about CallObjectMethodAsync.

  • Hi Ehsan,


     


    Gena's suspicion may be correct. 


    Can you check whether this behavior is reproduced in the latest product version - TestComplete 9.31? If it's impossible to do, please refer your question to our Support team as some debug information from your side may be required.