mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
26 lines
486 B
Go
26 lines
486 B
Go
//go:build opencv
|
|
|
|
package uixt
|
|
|
|
import (
|
|
"strconv"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
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])
|
|
}
|
|
|
|
driverExt, err := iosDevice.NewDriver(nil)
|
|
checkErr(t, err)
|
|
|
|
pathSearch := "/Users/hero/Documents/temp/2020-05/opencv/IMG_5.png"
|
|
|
|
err = driverExt.GesturePassword(pathSearch, password...)
|
|
checkErr(t, err)
|
|
}
|