mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 16:07:45 +08:00
refactor: merge Tap and TapFloat
This commit is contained in:
@@ -154,11 +154,7 @@ func (hd *hdcDriver) Orientation() (orientation Orientation, err error) {
|
||||
return OrientationPortrait, nil
|
||||
}
|
||||
|
||||
func (hd *hdcDriver) Tap(x, y int, options ...ActionOption) error {
|
||||
return hd.TapFloat(float64(x), float64(y), options...)
|
||||
}
|
||||
|
||||
func (hd *hdcDriver) TapFloat(x, y float64, options ...ActionOption) error {
|
||||
func (hd *hdcDriver) Tap(x, y float64, options ...ActionOption) error {
|
||||
actionOptions := NewActionOptions(options...)
|
||||
|
||||
if len(actionOptions.Offset) == 2 {
|
||||
|
||||
Reference in New Issue
Block a user