mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 16:29:37 +08:00
change: add logs for popup
This commit is contained in:
@@ -108,6 +108,7 @@ func (dExt *DriverExt) ClosePopups(options ...ActionOption) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (dExt *DriverExt) ClosePopupsHandler(options ...ActionOption) error {
|
func (dExt *DriverExt) ClosePopupsHandler(options ...ActionOption) error {
|
||||||
|
log.Info().Msg("try to find and close popups")
|
||||||
actionOptions := NewActionOptions(options...)
|
actionOptions := NewActionOptions(options...)
|
||||||
maxRetryTimes := actionOptions.MaxRetryTimes
|
maxRetryTimes := actionOptions.MaxRetryTimes
|
||||||
interval := actionOptions.Interval
|
interval := actionOptions.Interval
|
||||||
|
|||||||
@@ -321,6 +321,7 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
if feedVideo.VideoID == crawler.lastFeed.VideoID {
|
if feedVideo.VideoID == crawler.lastFeed.VideoID {
|
||||||
// app event tracking not changed
|
// app event tracking not changed
|
||||||
// check and handle popups
|
// check and handle popups
|
||||||
|
log.Warn().Msg("feed video event tracking not changed")
|
||||||
if err = crawler.driverExt.ClosePopupsHandler(WithMaxRetryTimes(1)); err != nil {
|
if err = crawler.driverExt.ClosePopupsHandler(WithMaxRetryTimes(1)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user