Passing "IObject" as an argument to native method fails
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ivg,
Passing IObjects to native methods is now possible in TestLeft 2.3.
Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
