mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
change: wait 3s for live loading
This commit is contained in:
@@ -239,6 +239,8 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
crawler.LiveCount++
|
crawler.LiveCount++
|
||||||
log.Info().Interface("video", currentVideo).Msg(FOUND_LIVE_SUCCESS)
|
log.Info().Interface("video", currentVideo).Msg(FOUND_LIVE_SUCCESS)
|
||||||
|
|
||||||
|
// wait 3s for live loading
|
||||||
|
time.Sleep(3 * time.Second)
|
||||||
// take screenshot and get screen texts by OCR
|
// take screenshot and get screen texts by OCR
|
||||||
screenResult, err := crawler.driverExt.GetScreenResult(
|
screenResult, err := crawler.driverExt.GetScreenResult(
|
||||||
WithScreenShotOCR(true),
|
WithScreenShotOCR(true),
|
||||||
|
|||||||
Reference in New Issue
Block a user