fix: add 1s interval when swipe to first screen

This commit is contained in:
lilong.129
2025-07-23 21:27:40 +08:00
parent 9037c76878
commit 70366ed83e

View File

@@ -163,6 +163,7 @@ func (dExt *XTDriver) SwipeToTapApp(appName string, opts ...option.ActionOption)
// swipe to first screen
for i := 0; i < 5; i++ {
dExt.Swipe(0.5, 0.5, 0.9, 0.5, optionsWithoutIdentifier...)
time.Sleep(1 * time.Second)
}
opts = append(opts, option.WithDirection("left"))