mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-08 07:51:25 +08:00
feat: swipe to tap app 支持滑动错误码返回
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-250723
|
v5.0.0-250724
|
||||||
|
|||||||
@@ -162,7 +162,11 @@ 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...)
|
err := dExt.Swipe(0.5, 0.5, 0.9, 0.5, optionsWithoutIdentifier...)
|
||||||
|
if err != nil {
|
||||||
|
log.Error().Err(err).Msgf("swipe to tap app %s failed", appName)
|
||||||
|
return errors.Wrapf(err, "swipe to tap app %s failed", appName)
|
||||||
|
}
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user