Android Appium Wireless debugging

Source: Internet
Author: User

1. Phone root

Root is the only super user in the system, get root permission, can start or stop a process at will, delete or add users, add and disable hardware. For Android phone, some mobile phone manufacturers will be embedded in the mobile phone fixed application software, to promote the role of propaganda, but this to the mobile phone users caused inconvenience, ordinary users can not delete them, This requires root. In short, to get root permission is to let mobile phone users use the phone more freely, then, how to give the phone root, access to access it? This is actually very simple, there are many root tools, here is a simple way to introduce you.

root.qq.com, download and install one-click Root Tool, or Jinshan Assistant can

2.adbWireless Wireless use ADB

After installation, you need to turn on, that is, click the Circle button, the IP address will be displayed after connection

3. (1) cmd input: adb connnet 10.6.125.74:5555 connected to the phone

(2) Open Appium Server

The test code is as follows:

# _*_ Coding:utf-8 _*_from appium import webdriverfrom appium.webdriver.mobilecommand import Mobilecommandimport Timeimport osdesired_caps = {}desired_caps[' platformname '] = ' Android ' desired_caps[' platformversion '] = ' 4.4.2 ' desired_caps[' devicename ' = ' 10.6.125.74:5555 ' desired_caps[' apppackage '] = ' com.android.browser ' desired_caps[' Appactivity '] = '. Browseractivity ' desired_caps[' browsername ']= ' Chrome ' desired_caps[' unicodekeyboard '] = truedesired_caps[' Resetkeyboard '] = truedesired_caps[' newcommandtimeout ') = 7200driver = Webdriver. Remote (' Http://localhost:4723/wd/hub ', Desired_caps) time.sleep (5) driver.get ("https://m.baidu.com/") Time.sleep (5 ) Driver.find_element_by_css_selector ("#index-kw"). Send_keys ("Test") Time.sleep (5)

After executing the script, you can see that the server side has found the device

 

Google Browser successfully opened Baidu, and input test

Android Appium Wireless debugging

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.