GithubHelp home page GithubHelp logo

moris9 / autofi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from d4fi/autofi

0.0 0.0 0.0 38 KB

This is a library for automating tasks or testing for Android devices.This library is based on the Android /bin folder. We use command-line utilities for some Android events.

Python 100.00%

autofi's Introduction

This is a library for automating tasks or testing for Android devices.This library
is based on the Android /bin folder. We use command-line
utilities for some Android events.

#Install

sudo pip install AutoFi
sudo pip3 install AutoFi

AutoFi - Documentations



-> Class Input

Input.text( text: string )

Pastes the text to the desired location.

Input.keyevent( key_code: string )

Arguments reserved for KeyEvents.
Keyevents: https://developer.android.com/reference/android/view/KeyEvent

Input.tap( x: string, y: string )

Click the specific location on the screen.
First and second arguments for coodernadas x and y.

Input.swipe( x1: string, y1: string, x2: string, y2: string, duration: string )

Slide from coordinates ( x1, y1 ) to ( x2, y2 ) with a specific ( duration )

Input.draganddrop( x1: str, y1: str, x2: str, y2: str, duration: str )

...

Input.press( )

...

Input.roll( dx: str, dy: str )

...


-> Class Screen

Screen.cap( save_cap_path: string )

Take a screenshot of the screen, ask for the path and name of the file
followed by its extension.

Screen.record( save_record_path: string )

starts screen recording, ask for the path and name of the file followed by its extension.

Screen.record_stop( )

stop screen recording

autofi's People

Contributors

d4fi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.