mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 08:27:35 +08:00
change: handle live popup
This commit is contained in:
@@ -242,17 +242,12 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
WithScreenShotOCR(true),
|
WithScreenShotOCR(true),
|
||||||
WithScreenShotUpload(true),
|
WithScreenShotUpload(true),
|
||||||
WithScreenShotLiveType(true),
|
WithScreenShotLiveType(true),
|
||||||
WithScreenShotClosePopups(true),
|
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("get screen result failed")
|
log.Error().Err(err).Msg("get screen result failed")
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if e := crawler.driverExt.tapPopupHandler(screenResult.Popup); e != nil {
|
|
||||||
log.Error().Err(e).Msg("close live popup failed")
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
// add live type
|
// add live type
|
||||||
if screenResult.imageResult != nil &&
|
if screenResult.imageResult != nil &&
|
||||||
|
|||||||
Reference in New Issue
Block a user