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
Skip tests
magmueller09a85a296e18
diff --git a/tests/test_dropdown.py b/tests/test_dropdown.pyindex f3d4624e5..9b6dfe886 100644--- a/tests/test_dropdown.py+++ b/tests/test_dropdown.py@@ -31,15 +31,11 @@ agent = Agent()-async def main():+async def test_dropdown():history: AgentHistoryList = await agent.run(20)# await controller.browser.close(force=True)result = history.final_result()assert result is not Noneassert 'Duck' in result- input('Press Enter to close the browser')# await browser.close()---asyncio.run(main())diff --git a/tests/test_vision.py b/tests/test_vision.pyindex 2d3a8f05c..0d1f98320 100644--- a/tests/test_vision.py+++ b/tests/test_vision.py@@ -10,6 +10,8 @@ import sysfrom doctest import OutputCheckerfrom pprint import pprint+import pytest+from browser_use.browser.browser import Browser, BrowserConfigsys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))@@ -49,8 +51,6 @@ agent = Agent()-async def main():[email protected](reason='this is for local testing only')+async def test_vision():history: AgentHistoryList = await agent.run(20)---asyncio.run(main())