Monkeyrunner Login App

Source: Internet
Author: User

The first step is to get the coordinate values of the edit box, button

Open the simulator, tap QQ

Enter as code in the Monkeyrunner environment

From Com.android.monkeyrunner import monkeyrunner,monkeydevicefrom com.android.monkeyrunner.recorder Import Monkeyrecorder as Recorderdevice=monkeyrunner.waitforconnection ()

Device.startactivity (component = "cn.fbtech.fbuser/cn.fbtech.fbuser.activity.loginactivity")
Recorder.start (device)

Then, as shown, click on the Account entry box, password entry box, login button. Write down the coordinates

Step two, log in

Input code

 fromCom.android.monkeyrunnerImportMonkeyrunner,monkeydevice Device=monkeyrunner.waitforconnection ()#Start Activitydevice.startactivity (Component="Cn.fbtech.fbuser/cn.fbtech.fbuser.activity.loginactivity ")

#login screen, click the Account entry box

Device.touch (
57,246,'down_and_up')

Device.type (
'1507xxxxx60')#Enter your account

#login screen, click the Password box

Device.touch (
54,298,'down_and_up')

Device.type (
'xxxxxx')#Enter Password
Device.touch (235,366, ' down_and_up ')

111

Monkeyrunner Login App

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.