Background:
When Xcode was updated to 8, older versions of Appium (1.5.3) could no longer launch the iOS APP in automated iOS tests. Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, Since the latter is unsupported on iOS 10 and up.) So we need to use the new Appium Desktop to get control information (such as ID) so that our application can run automated tests on emulation of iOS greater than 9.3.
Environment set up
- Download appium desktop (github.com/appium/appi…). , installed on a MAC.
- Install Carthage with the following command.
brew install carthageCopy the code
- My current xcode installation is 9.0.1
- I currently have appium installed as 1.2.4
How to get information about the control (such as Id)
-
Start appium Desktop, set host to 127.0.0.1, and click Start Server, as shown below:
- Click the Sart Inspector Session button as shown below:
- Fill in the information about the iOS APP you want to launch, such as platfromName, platfromVersion, deviceName, APP, noReset, and click Start Session. The diagram below:
- On the Inspector page, in the top row, you’ll see a button to get an ID, a button to swipe, a button to refresh, and a button to record a script. When you click the button to get the ID, and then click the corresponding control of the APP, you will see details about that control. The diagram below:
In a word:
We all know how to get the id of a control, which is a key step in automated testing. You will find that appium Desktop can successfully solve the problem of xcode > 8, emulator iOS > 9.3, unable to launch the application, and get the control ID.
ps:
- How to modify the following tests cases in ios 9.3 to run on emulators above ios 10.0: github.com/appium/appi…
- Appium Desktop download url: github.com/appium/appi…
- Check the emulation of your MAC installation with the following command
xcrun simctl listCopy the code