refactor: move uixt from hrp internal to pkg

This commit is contained in:
debugtalk
2022-10-10 22:12:36 +08:00
parent f4584db139
commit 59b06fcf65
44 changed files with 54 additions and 21 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v4/hrp/internal/uixt"
"github.com/httprunner/httprunner/v4/hrp/pkg/uixt"
)
var (
@@ -160,10 +160,10 @@ func (s *StepIOS) DoubleTap(params string, options ...uixt.ActionOption) *StepIO
return &StepIOS{step: s.step}
}
func (s *StepIOS) Swipe(sx, sy, ex, ey int, options ...uixt.ActionOption) *StepIOS {
func (s *StepIOS) Swipe(sx, sy, ex, ey float64, options ...uixt.ActionOption) *StepIOS {
action := uixt.MobileAction{
Method: uixt.ACTION_Swipe,
Params: []int{sx, sy, ex, ey},
Params: []float64{sx, sy, ex, ey},
}
for _, option := range options {
option(&action)