ContributionsMost RecentMost LikesSolutionsRe: Passing "IObject" as an argument to native method fails The exception I got: An unhandled exception of type 'SmartBear.TestLeft.TestObjects.InvocationException' occurred in SmartBear.TestLeft.dll Additional information: Failed to parse the value '{"objectId":"e45a6c71-b84b-42da-8a05-64c414a48d5b"}' of the arg1 parameter: Exception: Unable to convert JSON to an object. The JSON structure does not contain an object ID.. Passing "IObject" as an argument to native method fails Hi, I'm trying to do some actions on native java methods and fails while trying to pass an IObject interface (actually java object) as a parameter. IControl table = *Finds the table...* IObject cellRectangle = table.CallMethod<IObject>("getCellRect", rowIndex, columnIndex, true); table.CallMethod("scrollRectToVisible", cellRectangle); The last line is where I get the exception, when trying to pass cellRectangle as an argument. Doesn't TestLeft supports passing IObject as an argument to native methods? Thanks SolvedHow to see a native method's signature in UI Spy Hi, I can't see the signature of native methods in UI Spy (the methods that are accessible through the IObject interface). I'm testing Java Swing app, not sure how it will behave on .NET objects. Is it supported in TestLeft? As I remember it is supported in TestComplete. Thanks Re: How to check if an object is visible Found it, thanks How to check if an object is visible Hi, As I understoond 'TryFind' will return an object if it exists, regardless if it's visible or not. How to check if the object is visible? 'IObjectTreeNode' doesn't have any "IsVisible" method. Thanks SolvedFind object with unlimited depth search Hi, Can I search with IObjectTreeNode's 'Find' method on unlimited depth? Should I pass 0 to 'depth' parameter? Thanks Get variables out of "var" object in C# connected application Hi, I'm writing connected application in C#. I want to test Java application. I'm trying to get some string from some object and I can't figure out how to do it. I'm trying something like this: var comboBox = findComponent(rootComponent, propNames, propValues); object aa = comboBox["toString"](); In debugging I can see aa is a "var" type, and it encapsulates a COM object. When I use the unWarp method, I get the COM object itself. I don't know how to get to the actual String. Casting it or assigning to a String variable throws a ClassCastException. But for exampe, this line works. int itemCount = comboBox["getItemCount"](); "comboBox["getItemCount"]()" returns var object that contains int, not COM object like in the previous example. Why it is ok with integers but not ok with strings? It can identify and convert Java int to C# int, but not Java string to C# string? How can I get the string out? Thanks! Re: How To use "Find" Method with multipe properties and values in connected application (C# Code) Colin, thanks for the link! It helped. Use 'var' that contains array of elements in C# Code Hi, I'm trying something like this: var a = someProcess["FindAll"]("text", "Simulate", 200, false); var b = a["0"]; In debug mode I can see that 'a' contains 2 COM objects, but on the second line it fails on 'MissingMethodException'. I guess the problem is that my syntax is wrong. How can I use it? Thanks Re: How To use "Find" Method with multipe properties and values in connected application (C# Code) 'PropNames' and 'PropValues' should be of 'var' type. When I'm looking at the TestComplete's 'var' type declaration, I can see the supported types 'var' can get in his c'tor. There aren't any arrays there. Is it impossible to use multiple names & values when writing connected app in C#?