Is it now possible to Automate an App Store App using Appium

喜夏-厌秋 提交于 2020-01-13 14:54:52

问题


Historically, it was not possible to automate iOS app store apps using Appium (e.g. due to the Distribution Certificate used on all app store apps meaning you couldn't access the app via Appium).

Is this now possible in mid-2018 and if so does anyone know how to set it up?


回答1:


You can not Automate an Appstore app using Appium.

To do automation testing on a ios app it should be signed with development certificate.




回答2:


You can launch almost any iOS system app if you know it's bundle identifier.

I use ruby:

def launch_app(bundle_id)
  @driver.execute_script('mobile: launchApp',{'bundleId': "#{bundle_id}"});
end

def terminate_app(app_path)
  @driver.execute_script('mobile: terminateApp',{'app': "#{app_path}"});
end

To launch App Store:

launch_app("com.apple.AppStore")


来源:https://stackoverflow.com/questions/51186493/is-it-now-possible-to-automate-an-app-store-app-using-appium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!