feat: tap random point in ocr text rect

This commit is contained in:
lilong.129
2025-03-17 15:36:35 +08:00
parent 7f69052be6
commit b34a2218fe
6 changed files with 36 additions and 3 deletions

View File

@@ -182,5 +182,6 @@ func TestDriverExt_Action_Risk(t *testing.T) {
option.WithSwipeOffset(-50, 50, -50, 50))
assert.Nil(t, err)
err = driver.TapByOCR("首页", option.WithTapOffset(-10, 10))
// tap random point in ocr text rect
err = driver.TapByOCR("首页", option.WithTapRandom(true))
}