wait until animation ends after scrolling (#821)

This commit is contained in:
LawyZheng
2024-09-13 01:22:06 +08:00
committed by GitHub
parent 4973b5b820
commit a4797a97ef

View File

@@ -112,6 +112,9 @@ class SkyvernFrame:
if draw_boxes:
await skyvern_page.remove_bounding_boxes()
await skyvern_page.scroll_to_top(draw_boxes=False)
# wait until animation ends, which is triggered by scrolling
LOG.debug("Waiting for 2 seconds until animation ends.")
await asyncio.sleep(2)
else:
if draw_boxes:
await skyvern_page.build_elements_and_draw_bounding_boxes()