test: add unittest
This commit is contained in:
parent
0c8b147c7c
commit
124c222fbf
|
@ -1 +1 @@
|
||||||
v5.0.0-beta-2503080031
|
v5.0.0-beta-2503112212
|
||||||
|
|
|
@ -50,6 +50,11 @@ func TestDriverExt(t *testing.T) {
|
||||||
point, _ := driverExt.FindScreenText("hello")
|
point, _ := driverExt.FindScreenText("hello")
|
||||||
t.Log(point)
|
t.Log(point)
|
||||||
|
|
||||||
|
err := driverExt.TapByCV(
|
||||||
|
option.WithScreenShotUITypes("deepseek_send"),
|
||||||
|
option.WithScope(0.8, 0.5, 1, 1))
|
||||||
|
assert.Nil(t, err)
|
||||||
|
|
||||||
// call IDriver methods
|
// call IDriver methods
|
||||||
driverExt.GetDevice().Install("/path/to/app")
|
driverExt.GetDevice().Install("/path/to/app")
|
||||||
driverExt.GetDevice().GetPackageInfo("com.ss.android.ugc.aweme")
|
driverExt.GetDevice().GetPackageInfo("com.ss.android.ugc.aweme")
|
||||||
|
|
Loading…
Reference in New Issue