mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-02 02:30:07 +00:00
Fix bug: screenshot was not taken because of a coordinate bug (#163)
This commit is contained in:
parent
242a87bb24
commit
112b44e41a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue