mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-03 04:26:58 +08:00
refactor: merge swipe methods
This commit is contained in:
@@ -66,7 +66,7 @@ type IDriver interface {
|
||||
TapByTexts(actions ...TapTextAction) error // TODO: remove
|
||||
// swipe
|
||||
Drag(fromX, fromY, toX, toY float64, opts ...option.ActionOption) error
|
||||
Swipe(fromX, fromY, toX, toY float64, opts ...option.ActionOption) error
|
||||
Swipe(fromX, fromY, toX, toY float64, opts ...option.ActionOption) error // by percentage
|
||||
// input
|
||||
Input(text string, opts ...option.ActionOption) error
|
||||
Backspace(count int, opts ...option.ActionOption) error
|
||||
@@ -102,15 +102,6 @@ type IDriverExt interface {
|
||||
TapByOCR(text string, opts ...option.ActionOption) error
|
||||
TapByCV(opts ...option.ActionOption) error // TODO: refactor
|
||||
|
||||
// swipe
|
||||
SwipeRelative(fromX, fromY, toX, toY float64, opts ...option.ActionOption) error
|
||||
SwipeUp(opts ...option.ActionOption) error
|
||||
SwipeDown(opts ...option.ActionOption) error
|
||||
SwipeLeft(opts ...option.ActionOption) error
|
||||
SwipeRight(opts ...option.ActionOption) error
|
||||
|
||||
SwipeToTapApp(appName string, opts ...option.ActionOption) error
|
||||
|
||||
CheckPopup() (popup *PopupInfo, err error)
|
||||
ClosePopupsHandler() error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user