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

前端 未结 2 779
不思量自难忘°
不思量自难忘° 2021-01-15 11:24

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 acce

2条回答
  •  孤独总比滥情好
    2021-01-15 12:13

    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")
    

提交回复
热议问题