1.6 to give up uiautomation;
Switch to xcuiteest mechanism;
Environmental Fundamentals:xcode8,ios9.3 and above
1. Install the latest version of 1.6.3
Install CNPM: npm install-g cnpm--registry = https://registry.npm.taobao.org
Installation appium1.6.3: CNPM install - g [email protected]
2. Installing Appium-xcuitest-driver Dependencies
Enter the webdriveragent installation directory: CD /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/webdriveragent
Run Bootstrap:
Mkdir-p Resources/webdriveragent.bundlesh./scripts/bootstrap.sh-d
3. Change the script configuration:
Add this Apabilities
Automationname , "Xcuitest"
Source text: https://testerhome.com/topics/6962
New Positioning tool :https://macacajs.github.io/app-inspector/cn/
App Inspector is a mobile device UI viewer that runs on the browser side, uses a tree-state structure to view the UI layout, and automatically generates XPath to facilitate script authoring and generation.
Installation
$ npm Install app-inspector-g (the direct install will be very slow, change this command: npm Install app-inspector-g--registry=https://registry.npm.taobao.org )
Use
$ app-inspector-u Your-device-id
Attached: Get all current device information with Instruments-s
After the operation, as shown in
A
650) this.width=650; "src=" http://note.youdao.com/yws/res/3724/WEBRESOURCEa4aac618772ae08269b9377874cd81b1 "/>
(b) Automatically open the interface in the browser as shown in two, by selecting the left element, view its properties, Name,class,xpath, etc.
650) this.width=650; "src=" Http://note.youdao.com/yws/res/3727/WEBRESOURCE7c0273bd4dbf25b05e694eb32882fbe2 "/>
The original Appium 1.5 positioning is mainly based on XPath, with the name,class_name and other positioning effects poor.
Appium 1.6 has a high success rate for positioning with name,class_name, almost no longer using XPath.
http://www.cnblogs.com/hyddd/p/5571229.html Macaca is a lightweight appium. This can be used to try
(vi) Appium 1.6 use and app-inspector positioning