Contributions
Re: Combobox select item is not working
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:1.8KViews0likes0Comments- 1.8KViews0likes0Comments
How to convert the following lines of code to C#
Hi All, Need help in converting the below lines of code into C# script Point p = new Point {X = 100, Y = 50}; // X= Column Index and Y is Row Index. _pivotGrid.FocusedCell = p; _pivotGrid.MultiSelection.SetSelection(new[] { _pivotGrid.FocusedCell }); Regards, Savio5.8KViews0likes0Comments