From 3975c2d265f55bbb3c621d8a2014e169b4b49a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=81=AA?= Date: Thu, 14 Sep 2023 17:22:27 +0800 Subject: [PATCH] fix: custom swipe direction --- hrp/cmd/run.go | 2 +- hrp/internal/version/VERSION | 2 +- hrp/pkg/uixt/video_crawler.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hrp/cmd/run.go b/hrp/cmd/run.go index e042a5b7..cb14a8c3 100644 --- a/hrp/cmd/run.go +++ b/hrp/cmd/run.go @@ -42,7 +42,7 @@ func init() { runCmd.Flags().BoolVarP(&continueOnFailure, "continue-on-failure", "c", false, "continue running next step when failure occurs") runCmd.Flags().BoolVar(&requestsLogOff, "log-requests-off", false, "turn off request & response details logging") runCmd.Flags().BoolVar(&httpStatOn, "http-stat", false, "turn on HTTP latency stat (DNSLookup, TCP Connection, etc.)") - runCmd.Flags().BoolVar(&pluginLogOn, "log-plugin", false, "turn on plugin logging") + runCmd.Flags().BoolVar(&pluginLogOn, "log-plugin", true, "turn on plugin logging") runCmd.Flags().StringVarP(&proxyUrl, "proxy-url", "p", "", "set proxy url") runCmd.Flags().BoolVarP(&saveTests, "save-tests", "s", false, "save tests summary") runCmd.Flags().BoolVarP(&genHTMLReport, "gen-html-report", "g", false, "generate html report") diff --git a/hrp/internal/version/VERSION b/hrp/internal/version/VERSION index 471e7432..c4223e22 100644 --- a/hrp/internal/version/VERSION +++ b/hrp/internal/version/VERSION @@ -1 +1 @@ -v4.3.6 \ No newline at end of file +v4.3.6.202309141330 \ No newline at end of file diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index 2c8f978e..bdbc39fb 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -135,7 +135,7 @@ func (vc *VideoCrawler) startLiveCrawler(enterPoint PointF) error { default: // swipe to next live video swipeStartTime := time.Now() - if err := vc.driverExt.SwipeUp(); err != nil { + if err := vc.driverExt.SwipeRelative(0.9, 0.8, 0.9, 0.1); err != nil { log.Error().Err(err).Msg("live swipe up failed") return err } @@ -254,7 +254,7 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) { // swipe to next feed video log.Info().Msg("swipe to next feed video") swipeStartTime := time.Now() - if err = dExt.SwipeUp(); err != nil { + if err = dExt.SwipeRelative(0.9, 0.8, 0.9, 0.1); err != nil { log.Error().Err(err).Msg("feed swipe up failed") return err }