All Projects → trazyn → uiautomator-go

trazyn / uiautomator-go

Licence: MIT license
This is a simple golang wrapper for working uiautomator

Programming Languages

go
31211 projects - #10 most used programming language

This is a simple golang wrapper for working uiautomator.

Setup

To install this library, simple:

go get -u github.com/trazyn/uiautomator-go

Import the package:

import ug "github.com/trazyn/uiautomator-go"

Quick start

First, let yours mobile and PC join the same network.

ua := ug.New(&ug.Config{
    Host: "10.10.20.78",
    Port: 7912,
})

ua.Unlock()

// Show toast
toast := ua.NewToast()
toast.Show("hallo world", 10)

https://github.com/openatx/uiautomator2#basic-api-usages

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].