change: tap/swipe with offset

This commit is contained in:
lilong.129
2025-03-17 14:36:09 +08:00
parent b412fa193b
commit 3e7e9b0ef9
5 changed files with 27 additions and 12 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func (dExt *XTDriver) SwipeToTapApp(appName string, opts ...option.ActionOption)
actionOptions := option.NewActionOptions(opts...)
// tap app icon above the text
if len(actionOptions.Offset) == 0 {
if len(actionOptions.TapOffset) == 0 {
opts = append(opts, option.WithTapOffset(0, -25))
}
// set default swipe interval to 1 second