现在是否可以使用 Appium 自动化 App Store 应用程序

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

过去,无法使用 Appium 自动执行 iOS 应用商店应用(例如,由于所有应用商店应用都使用分发证书,这意味着您无法通过 Appium 访问该应用)。

现在可以在 2018 年年中实现吗?如果可以,有人知道如何设置吗?

您无法使用 Appium 自动化 Appstore 应用程序。

要对 ios 应用程序进行自动化测试,应使用开发证书对其进行签名。

如果您知道它的捆绑包标识符,您几乎可以启动任何 iOS 系统应用程序。

我用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

要启动 App Store:

launch_app("com.apple.AppStore")