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
remove dead code
Nick Sweeting43bc8b57f5f2
diff --git a/tests/ci/test_agent_multiprocessing.py b/tests/ci/test_agent_multiprocessing.pyindex 587ec0855..fe4f34610 100644--- a/tests/ci/test_agent_multiprocessing.py+++ b/tests/ci/test_agent_multiprocessing.py@@ -18,7 +18,6 @@ from concurrent.futures import ThreadPoolExecutorfrom browser_use import Agent, setup_loggingfrom browser_use.browser import BrowserProfile, BrowserSession-from browser_use.browser.types import async_playwrightfrom tests.ci.conftest import create_mock_llm# Set up test logging@@ -469,52 +468,6 @@ class TestParallelism:finally:await session.kill()- async def test_existing_playwright_objects(self):- """Test using existing playwright objects"""- logger.info('Testing with existing playwright objects')-- async with async_playwright() as playwright:- browser = await playwright.chromium.launch(headless=True)- context = await browser.new_context()- page = await context.new_page()-- # Create session with existing playwright objects- browser_session = BrowserSession(- browser_profile=BrowserProfile(- headless=True,- user_data_dir=None,- keep_alive=False,- ),- page=page,- browser_context=context,- browser=browser,- playwright=playwright,- )-- # Create mock LLM- mock_llm = create_mock_llm()-- # Create agent with the session- agent = Agent(- task='Test with existing playwright objects',- llm=mock_llm,- browser_session=browser_session,- enable_memory=False,- )-- # Run the agent- result = await agent.run()-- # Verify success- assert len(result.history) > 0- last_history = result.history[-1]- if last_history.model_output and last_history.model_output.action:- assert any('done' in action.model_dump(include={'done'}) for action in last_history.model_output.action)-- await browser.close()- await browser_session.kill()- await playwright.stop()-if __name__ == '__main__':asyncio.run(TestParallelism().test_one_event_loop_with_asyncio_run_and_one_task())