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
fix more tests
mertunsall4bf3ca302b68
diff --git a/tests/ci/test_browser_session_output_paths.py b/tests/ci/test_browser_session_output_paths.pyindex c2854e711..ce616b500 100644--- a/tests/ci/test_browser_session_output_paths.py+++ b/tests/ci/test_browser_session_output_paths.py@@ -61,7 +61,8 @@ def interactive_llm(httpserver_url):"action": [{{"go_to_url": {{- "url": "{httpserver_url}"+ "url": "{httpserver_url}",+ "new_tab": false}}}}]diff --git a/tests/ci/test_browser_session_ownership.py b/tests/ci/test_browser_session_ownership.pyindex a9da66302..393f96b24 100644--- a/tests/ci/test_browser_session_ownership.py+++ b/tests/ci/test_browser_session_ownership.py@@ -71,7 +71,8 @@ class TestBrowserOwnership:"action": [{{"go_to_url": {{- "url": "{httpserver.url_for('/test')}"+ "url": "{httpserver.url_for('/test')}",+ "new_tab": false}}}}]diff --git a/tests/ci/test_sequential_agents_simple.py b/tests/ci/test_sequential_agents_simple.pyindex 3dddf2711..ac1f5440b 100644--- a/tests/ci/test_sequential_agents_simple.py+++ b/tests/ci/test_sequential_agents_simple.py@@ -43,7 +43,7 @@ class TestSequentialAgentsSimple:"memory": "Need to navigate to page 1","next_goal": "Navigate to page 1","action": [- {{"go_to_url": {{"url": "{httpserver.url_for('/page1')}"}}}}+ {{"go_to_url": {{"url": "{httpserver.url_for('/page1')}", "new_tab": false}}}}]}}"""]@@ -81,7 +81,7 @@ class TestSequentialAgentsSimple:"memory": "Browser is still open, need to go to page 2","next_goal": "Navigate to page 2","action": [- {{"go_to_url": {{"url": "{httpserver.url_for('/page2')}"}}}}+ {{"go_to_url": {{"url": "{httpserver.url_for('/page2')}", "new_tab": false}}}}]}}"""]@@ -127,8 +127,8 @@ class TestSequentialAgentsSimple:"memory": "Need to open two tabs","next_goal": "Open tab 1 and tab 2","action": [- {{"go_to_url": {{"url": "{httpserver.url_for('/tab1')}"}}}},- {{"open_tab": {{"url": "{httpserver.url_for('/tab2')}"}}}}+ {{"go_to_url": {{"url": "{httpserver.url_for('/tab1')}", "new_tab": false}}}},+ {{"go_to_url": {{"url": "{httpserver.url_for('/tab2')}", "new_tab": true}}}}]}}"""]diff --git a/tests/old/test_google_sheets_real.py b/tests/old/test_google_sheets_real.pyindex bfaea7b22..077c282e1 100644--- a/tests/old/test_google_sheets_real.py+++ b/tests/old/test_google_sheets_real.py@@ -114,7 +114,7 @@ async def test_google_sheets_open(browser_session, controller):# First navigate to the Google Sheets URLresult = await controller.registry.execute_action(- 'go_to_url', {'url': TEST_GOOGLE_SHEET_URL}, browser_session=browser_session+ 'go_to_url', {'url': TEST_GOOGLE_SHEET_URL, 'new_tab': False}, browser_session=browser_session)# Wait for the page to load