mardi 4 août 2015

Executing iOS Instruments Javascript code via Appium

I want to execute iOS Instruments UIAutomation javascript code using Appium. I am aware that I can execute some javascript from Appium using the following methods:

apmDriver.execute(driverCommand, parameters);
apmDriver.executeAsyncScript(script, args);
apmDriver.executeScript(script, args);

Suppose if I directly want to interact with Instruments UIAutomation by passing instruments javascript code. For example:

apmDriver.executeScript("var target = UIATarget.localTarget();
var appWindow = target.frontMostApp().mainWindow();
appWindow.tabBar().buttons()[\"Unit Conversion\"].tap()",null) 

Is it possible to do this on an iOS native app?

Aucun commentaire:

Enregistrer un commentaire