mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
feat: move uixt to hrp internal
This commit is contained in:
28
hrp/internal/uixt/gesture_test.go
Normal file
28
hrp/internal/uixt/gesture_test.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package uixt
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/electricbubble/gwda"
|
||||
)
|
||||
|
||||
func TestDriverExt_GesturePassword(t *testing.T) {
|
||||
split := strings.Split("6304258", "")
|
||||
password := make([]int, len(split))
|
||||
for i := range split {
|
||||
password[i], _ = strconv.Atoi(split[i])
|
||||
}
|
||||
|
||||
driver, err := gwda.NewUSBDriver(nil)
|
||||
checkErr(t, err)
|
||||
|
||||
driverExt, err := Extend(driver, 0.95)
|
||||
checkErr(t, err)
|
||||
|
||||
pathSearch := "/Users/hero/Documents/temp/2020-05/opencv/IMG_5.png"
|
||||
|
||||
err = driverExt.GesturePassword(pathSearch, password...)
|
||||
checkErr(t, err)
|
||||
}
|
||||
Reference in New Issue
Block a user