Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
also stop playwright at the end of the test
Nick Sweeting2631c4c03f2b
diff --git a/tests/ci/test_agent_multiprocessing.py b/tests/ci/test_agent_multiprocessing.pyindex a4e61f6c5..53e901bd2 100644--- a/tests/ci/test_agent_multiprocessing.py+++ b/tests/ci/test_agent_multiprocessing.py@@ -532,6 +532,8 @@ class TestParallelism:# Give playwright tasks a moment to complete before killingawait asyncio.sleep(0.1)await shared_session.kill()+ # Give playwright.stop() time to complete cleanup+ await asyncio.sleep(0.1)async def test_reuse_browser_session_sequentially(self):"""Test reusing a browser session sequentially with keep_alive"""@@ -627,7 +629,6 @@ class TestParallelism:if last_history.model_output and last_history.model_output.action:assert any(hasattr(action, 'done') for action in last_history.model_output.action)- # Clean up browser session first- await browser_session.kill()- # Then close browser to ensure all playwright tasks completeawait browser.close()+ await browser_session.kill()+ await playwright.stop()