MCPcopy
hub / github.com/httprunner/httprunner / TapByUIDetection

Method TapByUIDetection

hrp/pkg/uixt/tap.go:52–64  ·  view source on GitHub ↗
(options ...ActionOption)

Source from the content-addressed store, hash-verified

50}
51
52func (dExt *DriverExt) TapByUIDetection(options ...ActionOption) error {
53 actionOptions := NewActionOptions(options...)
54
55 point, err := dExt.FindUIResult(options...)
56 if err != nil {
57 if actionOptions.IgnoreNotFoundError {
58 return nil
59 }
60 return err
61 }
62
63 return dExt.TapAbsXY(point.X, point.Y, options...)
64}
65
66func (dExt *DriverExt) Tap(param string, options ...ActionOption) error {
67 return dExt.TapOffset(param, 0, 0, options...)

Callers 2

DoActionMethod · 0.95
TestTapUIWithScreenshotFunction · 0.80

Calls 3

FindUIResultMethod · 0.95
TapAbsXYMethod · 0.95
NewActionOptionsFunction · 0.85

Tested by 1

TestTapUIWithScreenshotFunction · 0.64