2017-11-28 4 views
0

iosの2つのネイティブアプリを切り替える必要があります。 1のアプリケーションはサードパーティのアプリケーションで、もう1つはApple Healthに関連しています。 私は、アプリを切り替えるには、コードの下に使用しようとしています:のみAndroidプラットフォーム用Appium-perfecto iOSネイティブアプリケーションスイッチの問題

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+"################"); 
     } 

答えて

0

残念ながらその可能。

iOSでは、WebDriverAgentを操作するために適切に署名したアプリケーションのみをテストすることができます。