hi all i want to automate safari on real device,
i'm facing this :
[debug] [Instruments] [INST STDERR] 2016-04-12 16:25:39.540 instruments[762:19073] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: com.bytearc.SafariLauncher
instruments, version 7.3 (60133)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
i have these capabilities :
public void SetUp () throws MalformedURLException {
DesiredCapabilities Caps = new DesiredCapabilities();
Caps.setCapability("platformVersion", "9.3");
Caps.setCapability("platformName", "iOS");
Caps.setCapability("deviceName", "iPad");
Caps.setCapability(MobileCapabilityType.BROWSER_NAME,"safari");
Caps.setCapability("bundleId","mybundleID");
Caps.setCapability("app", "/Users/admin/Documents/installations/appium/node_modules/appium-ios-driver/build/SafariLauncher");
Caps.setCapability("udid", "MYUDID");
driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), Caps);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.get("https://www.google.com/");
}
i launch ios webkit debug proxy and his launcher.js
i work with appium 1.5 i have xcode 7.3 and ipad under ios 9.3
i modified the bundle of the SafariLauncher then i think it's my problem but i don't know how to solve it ...
In the appium api : http://appium.io/slate/en/1.5/?java#automating-mobile-web-apps
they say to get the identity code , the UUID but i don't know where to use it , i always put the udid of my real device
thx to help me.