mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
refactor: rename ApplyTapOffset
This commit is contained in:
@@ -22,7 +22,7 @@ func (dExt *XTDriver) TapByOCR(text string, opts ...option.ActionOption) error {
|
||||
}
|
||||
|
||||
var point ai.PointF
|
||||
if actionOptions.TapRandom {
|
||||
if actionOptions.TapRandomRect {
|
||||
point = textRect.RandomPoint()
|
||||
} else {
|
||||
point = textRect.Center()
|
||||
|
||||
Reference in New Issue
Block a user