cancel
Showing results for 
Search instead for 
Did you mean: 

Passing "IObject" as an argument to native method fails

SOLVED
Highlighted
Ivg
Occasional Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: Passing "IObject" as an argument to native method fails

Hi Ivg,

 

Passing IObjects to native methods is now possible in TestLeft 2.3.


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
2 REPLIES 2
Ivg
Occasional Contributor

Re: 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..

Moderator

Re: Passing "IObject" as an argument to native method fails

Hi Ivg,

 

Passing IObjects to native methods is now possible in TestLeft 2.3.


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
New Here?
Join us and watch the welcome video:
Update to TestLeft 2.3
Labels