mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
feat: tap random point in ocr text rect
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user