Appium problems encountered in the use of

Source: Internet
Author: User

1, org.openqa.selenium.sessionnotcreatedexception:a new session could not be created. (Original error:the following desired capabilities is required, but were not provided:devicename)

Workaround: The device name is not added

Capabilities.setcapability ("DeviceName", "Emulator");

2, run Appium, run error, prompt detection device, run cmd, input ADB devices hint error, no display device UID, Internet search said installed 360 mobile phone assistant caused the conflict, 360 mobile phone assistant deleted, sure enough.

3. Get the App startup activity

1) point the current path to the Build-tools directory of the SDK and put the APK file in: Execute the following command:. \AAPT dump badging xxx.apk command gets the in-package information. Note that the startup class name cannot be wrong with a letter, note the Launchable-activity property

2) No apk, the app is already installed on the phone or virtual machine. You can use the Logcat command

. Clear Logcat content, use command adb logcat-c

. Start Logcat, use the command adb logcat activitymanager:i *:s

4, use Appiumdriver error: jar with java-client-2.2.0, should use Androiddriver or 1.3.4 java-client

Also encountered a variety of problems, some have not resolved, not yet to be continued

Appium problems encountered in the use of

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.