我想在ios中的两个本机应用程序之间切换。1个应用程序是第三方应用程序,另一个应用程序与Apple Health相关。我正在尝试使用下面的代码在应用程序之间切换:
public static void switchToAppleHealth(IOSDriver driver,String bundleId) throws MalformedURLException {
ConfigurationManager.getBundle().setProperty(bundleId, "com.apple.Health");
DesiredCapabilities capabilities = DesiredCapabilities.iphone();
capabilities.setCapability("bundleId", bundleId);
System.out.println(bundleId+"################");
driver = new IOSDriver(new URL("https://nexperience/perfectomobile/wd/hub"), capabilities);
driver.launchApp();
System.out.println(bundleId+"################");
}发布于 2017-11-28 22:49:06
不幸的是,只有才有可能在安卓平台上运行。
使用iOS,您只能测试为WebDriverAgent操作而正确签名的应用程序。
https://stackoverflow.com/questions/47530548
复制相似问题