From 112b44e41a29367f691bf5e001b9912c50859d52 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Sun, 7 Apr 2024 14:19:45 +0800 Subject: [PATCH] Fix bug: screenshot was not taken because of a coordinate bug (#163) --- skyvern/webeye/scraper/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/webeye/scraper/scraper.py b/skyvern/webeye/scraper/scraper.py index 3105092b..f433f523 100644 --- a/skyvern/webeye/scraper/scraper.py +++ b/skyvern/webeye/scraper/scraper.py @@ -166,7 +166,7 @@ async def scrape_web_unsafe( await asyncio.sleep(5) screenshots: list[bytes] = [] - scroll_y_px_old = -1.0 + scroll_y_px_old = -30.0 scroll_y_px = await scroll_to_top(page, drow_boxes=True) # Checking max number of screenshots to prevent infinite loop # We are checking the difference between the old and new scroll_y_px to determine if we have reached the end of the