(vi) Appium 1.6 use and app-inspector positioning

Source: Internet
Author: User
Tags xpath appium

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.