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
- Host: GitHub
- URL: https://github.com/trazyn/uiautomator-go
- Owner: trazyn
- License: mit
- Created: 2018-10-27T08:04:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-01T04:20:20.000Z (over 7 years ago)
- Last Synced: 2025-03-16T23:12:22.242Z (over 1 year ago)
- Language: Go
- Size: 34.2 KB
- Stars: 27
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)