Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: add missing await keyword to asyncio.sleep() in extraction test - Fixes asyncio.sleep(1) that was missing await keyword on line 85 - Without await, the sleep coroutine was never executed, causing no delay - This improves test reliability by ensuring proper 1-second wait after page navigation

tinkerer-shubh9b93a9fa6e50
diff --git a/tests/extraction_test.py b/tests/extraction_test.py
index b3f085b41..38890d8c9 100644
--- a/tests/extraction_test.py
+++ b/tests/extraction_test.py
@@ -83,7 +83,7 @@ async def test_focus_vs_all_elements():
for website in websites:
# sleep 2
await page.goto(website)
- asyncio.sleep(1)
+ await asyncio.sleep(1)
last_clicked_index = None # Track the index for text input
while True: