Forum Discussion

savio_leitao's avatar
savio_leitao
Occasional Contributor
12 years ago

Combobox select item is not working

Hi

Using IE8 and Select control, using testcomplete via connected apps(C#.net)



Not able select the item fromt the combo box



where as if i do record and playback in testcomplete its able to select.



Regards,

Savio

7 Replies

  • savio_leitao's avatar
    savio_leitao
    Occasional Contributor
    This issue got resolved after upgrading to testcomplete 9.3



    Thanks,

    Savio

  • Hi Savio,


     


    Could you please describe in detail what exactly doesn't work? If you get any error when executing the test, post a screenshot of it here.


     

  • savio_leitao's avatar
    savio_leitao
    Occasional Contributor
    Thanks Tanya for your reply:



    Currently we are testing a web application on IE8 with testcomplete 9.1

    Testcomplete is used via connected apps using C#.Net.

     

    Currently there are issues of selecting an item from combobox,

     

    Pseudo code:

    1) Get the combobox

    2) using items count get the itemscount

    3) use ClickItem(“ABC”) to select the desired item.

     

    It fails to do the click item at Step 3

     

    System.Reflection.TargetInvocationException was caught

      Message=Exception has been thrown by the target of an invocation.

      Source=mscorlib

      StackTrace:

           at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)

           at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

           at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)

           at AutomatedQA.script.var.VarDelegate.CallNoPop(var[] args)

           at AutomatedQA.script.var.VarDelegate.CallStatic(var[] args)

    //Removed some lines of error here//

      InnerException: System.Runtime.InteropServices.COMException

           Message=The remote procedure call failed. (Exception from HRESULT: 0x800706BE)

           ErrorCode=-2147023170

           InnerException:

     


  • Hi Savio,


     


    As far as I can see, one of your colleagues has contacted the TestComplete Support team. They suggested updating to the latest TestComplete version - v. 9.31.


    Could you please check whether the issue is reproduced with TestComplete 9.31?


     

  • savio_leitao's avatar
    savio_leitao
    Occasional Contributor
    Thanks Tanya,

    But is this a known issue in 9.1?



    Since if i do the same via Testcomplete UI it works fine

    but not through C#.net

  • Hi Savio,


     


    I didn't hear about a similar issue from someone in the Community. Perhaps, the Support Team is familiar with this.


    Anyway, our R&D is investigating issues only on the latest TestComplete versions. So, even if preparing a patch is required, the team will do it for TestComplete 9.31 (the latest TC version at the moment).