Forum Discussion
savio_leitao
12 years agoOccasional 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:
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: