Page 1 of 1

Device automation and Ranorex API

Posted: Fri Nov 09, 2012 8:28 am
by Stian
Hi!

Is it possible to develop device automation for Android (and upcoming iPhone) using the Ranorex API through Visual Studio, or can this only be done using Ranorex Studio?

Re: Device automation and Ranorex API

Posted: Fri Nov 09, 2012 12:47 pm
by Support Team
Hello,

Yes. You could use the Ranorex API to access mobile applications as shown in the code example below:
Ranorex.Core.PluginManager.Instance.LoadDefaultPlugins();
Host.Local.RunMobileApp("<deviceDisplayName>", "<appName>");
Ranorex.Button btn = @"<RanoreXPath to the button>";
btn.Touch(Location.Center);
Host.Local.CloseApplication(btn);
Regards,
Markus (T)

Re: Device automation and Ranorex API

Posted: Fri Nov 09, 2012 2:18 pm
by Stian
Great! Thanks you for fast reply :)