mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-05 06:21:22 +08:00
fix: add 1s interval when swipe to first screen
This commit is contained in:
@@ -163,6 +163,7 @@ func (dExt *XTDriver) SwipeToTapApp(appName string, opts ...option.ActionOption)
|
|||||||
// swipe to first screen
|
// swipe to first screen
|
||||||
for i := 0; i < 5; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
dExt.Swipe(0.5, 0.5, 0.9, 0.5, optionsWithoutIdentifier...)
|
dExt.Swipe(0.5, 0.5, 0.9, 0.5, optionsWithoutIdentifier...)
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
opts = append(opts, option.WithDirection("left"))
|
opts = append(opts, option.WithDirection("left"))
|
||||||
|
|||||||
Reference in New Issue
Block a user