fix: custom swipe direction

This commit is contained in:
徐聪
2023-09-14 17:22:27 +08:00
parent 04b1a8528e
commit 3975c2d265
3 changed files with 4 additions and 4 deletions

View File

@@ -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")

View File

@@ -1 +1 @@
v4.3.6
v4.3.6.202309141330

View File

@@ -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
}