(options ...ActionOption)
| 50 | } |
| 51 | |
| 52 | func (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 | |
| 66 | func (dExt *DriverExt) Tap(param string, options ...ActionOption) error { |
| 67 | return dExt.TapOffset(param, 0, 0, options...) |