refactor: move guia2 into uixt

This commit is contained in:
debugtalk
2022-09-25 00:47:12 +08:00
parent 736f1d6c7b
commit 66b5d5cc49
18 changed files with 4557 additions and 155 deletions

View File

@@ -164,6 +164,8 @@ type BatteryInfo struct {
// Battery state ( 1: on battery, discharging; 2: plugged in, less than 100%, 3: plugged in, at 100% )
State BatteryState `json:"state"`
Status BatteryStatus `json:"status"`
}
type BatteryState int
@@ -683,6 +685,11 @@ type Point struct {
Y int `json:"y"` // upper left Y coordinate of selected element
}
type PointF struct {
X float64 `json:"x"`
Y float64 `json:"y"`
}
type Rect struct {
Point
Size
@@ -708,6 +715,11 @@ func WithFrequency(frequency int) DataOption {
}
}
// current implemeted device: IOSDevice, AndroidDevice
type Device interface {
UUID() string
}
// WebDriver defines methods supported by WebDriver drivers.
type WebDriver interface {
// NewSession starts a new session and returns the SessionInfo.