refactor: swipe actions

This commit is contained in:
lilong.129
2023-04-27 15:36:55 +08:00
parent df5731aafd
commit 0794ef8296
4 changed files with 49 additions and 39 deletions
+11 -1
View File
@@ -10,7 +10,17 @@ import (
"time"
)
var uiaServerURL = "http://localhost:6790/wd/hub"
var (
uiaServerURL = "http://localhost:6790/wd/hub"
driverExt *DriverExt
)
func setupAndroid(t *testing.T) {
device, err := NewAndroidDevice()
checkErr(t, err)
driverExt, err = device.NewDriver(nil)
checkErr(t, err)
}
func TestDriver_NewSession(t *testing.T) {
driver, err := NewUIADriver(nil, uiaServerURL)