Appium+python Automation 25-windows Version appium_desktop_v1.7.1

Source: Internet
Author: User

appium_desktop_v1.2.6

1.appium_desktop on GitHub Latest: releases/tag/v1.2.6

2. After download the fool installs, then launches the Appium, this interface is very different from the previous old version, the version number: V1.7.1

Run Appium

1. Start the interface point Start button directly into the console log interface, encountered any error here to read the log, basically can find a way to solve the problem.

Inspector

1. Element positioning detector, in desired capabilitis the table input parameter configuration information:

    • ' PlatformName ': ' Android '
    • ' DeviceName ': ' 127.0.0.1:62001 ' # This is the device name of the night God Simulator
    • ' Platformversion ': ' 4.4.2 ' # Night God simulator system is 4.4.2
    • ' Apppackage ': ' Com.taobao.taobao '
    • ' appactivity ': ' Com.taobao.tao.welcome.Welcome '

2. After the configuration of the parameters can be saved, and then start the night God Simulator, and then click the Start Session button to locate the element

3. Use the arrow buttons in the navigation bar to locate the element properties of the app on the left

Pop-up box of pits

1. There is a pit where the elements of this popup cannot be located and need the UI Automator viewer tool to navigate to

Comparative analysis

1.inspector Advantages

    • Appium with the inspector can see the XPath path, compared to the XPath unfamiliar classmates can be very good to help

2.inspector Disadvantages

    • Some pop-up elements cannot be positioned to

    • An overly dependent tool to match the XPath will make you lazy and become dependent on the tool.

Summary: XPath is actually the next way of positioning, can not use as much as possible, and do not have to copy the XPath paste, that to you to locate a little help is not, want to use the XPath classmate, learn more grammar, write to yourself!

Appium+python Automation 25-windows Version appium_desktop_v1.7.1

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.