An open API service indexing awesome lists of open source software.

https://github.com/trazyn/uiautomator-go

This is a simple golang wrapper for working uiautomator
https://github.com/trazyn/uiautomator-go

Last synced: 8 months ago
JSON representation

This is a simple golang wrapper for working uiautomator

Awesome Lists containing this project

README

          

This is a simple golang wrapper for working uiautomator.

## Setup

To install this library, simple:

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

Import the package:

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

## Quick start

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

```go
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](https://github.com/openatx/uiautomator2#basic-api-usages)