首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Appium-perfecto iOS本机应用程序切换问题

Appium-perfecto iOS本机应用程序切换问题
EN

Stack Overflow用户
提问于 2017-11-28 19:33:21
回答 1查看 173关注 0票数 0

我想在ios中的两个本机应用程序之间切换。1个应用程序是第三方应用程序,另一个应用程序与Apple Health相关。我正在尝试使用下面的代码在应用程序之间切换:

代码语言:javascript
复制
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+"################");
        }
EN

回答 1

Stack Overflow用户

发布于 2017-11-28 22:49:06

不幸的是,只有才有可能在安卓平台上运行。

使用iOS,您只能测试为WebDriverAgent操作而正确签名的应用程序。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47530548

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档