replace AutoPopupHandler with ClosePopupsHandler

This commit is contained in:
buyuxiang
2023-08-28 19:05:54 +08:00
parent b0ccd504de
commit 780fe2b002
3 changed files with 9 additions and 5 deletions

View File

@@ -317,7 +317,7 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
if feedVideo.VideoID == crawler.lastFeed.VideoID {
// app event tracking not changed
// check and handle popups
if err = crawler.driverExt.AutoPopupHandler(); err != nil {
if err = crawler.driverExt.ClosePopupsHandler(WithMaxRetryTimes(1)); err != nil {
return err
}
}