Example - iOS App and Mobile Web Automation
Learn how to automate an iOS application and mobile web on iOS phone.
We have already learned about capabilities in the previous lesson. In this lesson, we will learn about the capabilities that are unique to iOS app automation.
Capabilities for iOS app automation
The following table shows the capabilities with respect to automating iOS applications:
Capability Name | Description | Possible Values |
---|---|---|
automationName |
automation engine to use | XCUITest |
platformName |
mobile OS platform to use | ios |
platformVersion |
mobile OS version | 7.1, 4.4, etc. |
deviceName |
kind of mobile device or emulator to use | iPhone Simulator, etc… |
bundleId |
bundle ID of the app under test that is unique for every app | |
app |
absolute path of .app incase of simulator or .ipa file incase of real device or file or a .zip file containing the .app or .ipa file or publicly hosted .zip or .ipa file | /path/.ipa or /path/.zip or http://…/app.ipa |
otherApps |
app or list of apps (as a JSON array) to install at the start of running tests. It could be a local file or publicly hosted app | [ “/path/.app”, “http://…/app.ipa” ] |
udid |
unique device identifier of the connected physical device | e.g. A798E8EF-E2D0-4405-8DB4-4E282DB4C95A |
autoLaunch |
initializes the app to test automatically. Defaults to true | true or false |
autoWebview |
move directly into WebView context. Defaults to false |
true or false |
noReset |
do not reset app state before this session | true or false |
fullReset |
performs a complete reset | true or false |
autoAcceptAlerts |
accepts all iOS alerts (like location permission, etc.) automatically if they pop up. Defaults to false | true or false |
autoDismissAlerts |
dismisses all iOS alerts (like location permission, etc.) automatically if they pop up. Defaults to false | true or false |
showIOSLog |