Skip to content

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

Skip tests

magmueller09a85a296e18
diff --git a/tests/test_dropdown.py b/tests/test_dropdown.py
index 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 None
assert '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.py
index 2d3a8f05c..0d1f98320 100644
--- a/tests/test_vision.py
+++ b/tests/test_vision.py
@@ -10,6 +10,8 @@ import sys
from doctest import OutputChecker
from pprint import pprint
+import pytest
+
from browser_use.browser.browser import Browser, BrowserConfig
sys.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())