From 124c222fbfcf86fe10146601e4dbaca75fc5d5ad Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Tue, 11 Mar 2025 22:12:02 +0800 Subject: [PATCH] test: add unittest --- internal/version/VERSION | 2 +- uixt/driver_ext_test.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/version/VERSION b/internal/version/VERSION index aaa993f9..fcdf8ad7 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0-beta-2503080031 +v5.0.0-beta-2503112212 diff --git a/uixt/driver_ext_test.go b/uixt/driver_ext_test.go index d625f11d..9afdcd15 100644 --- a/uixt/driver_ext_test.go +++ b/uixt/driver_ext_test.go @@ -50,6 +50,11 @@ func TestDriverExt(t *testing.T) { point, _ := driverExt.FindScreenText("hello") 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 driverExt.GetDevice().Install("/path/to/app") driverExt.GetDevice().GetPackageInfo("com.ss.android.ugc.aweme")