Skip to content
/ AutoFi Public

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.

Notifications You must be signed in to change notification settings

D4Fi/AutoFi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages