How to invoke Android Method

Mobile Testing, Android App Testing.
QaTester
Posts: 11
Joined: Fri Nov 08, 2013 8:03 pm

How to invoke Android Method

Post by QaTester » Fri Mar 07, 2014 7:55 pm

Hi,

Is there a way to invoke an android method like you would a java method done here:
http://www.ranorex.com/forum/how-to-inv ... t2320.html

I looked through the api documentation and there doesn't appear to be any "InvokeMethod()" for the AndroidElement class like there is for the JavaElement class.

I looked into calling "InvokeAction()" on the AndroidElement's element property but there's only two actions available: "Touch" and "SetOrientation".

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to invoke Android Method

Post by Support Team » Tue Mar 11, 2014 2:54 pm

Hello QaTester,

Unfortunately it is not possible to invoke methods in android like it is possible with java methods. Therefore, only the common methods (Touch, SetOrientation, etc) are available. Thank you for your understanding.

Regards,
Robert