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
Add browser-use-core rc extra
Gregor Žunič2b81e552c61f
diff --git a/pyproject.toml b/pyproject.tomlindex 8226fb485..8f2411e57 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -59,6 +59,10 @@ dependencies = [[project.optional-dependencies]cli = ["textual==7.4.0"]+rust = [+ "browser-use-core==0.13.0rc1; sys_platform == 'linux' and platform_machine == 'x86_64'",+ "browser-use-core==0.13.0rc1; sys_platform == 'linux' and platform_machine == 'aarch64'",+]aws = ["boto3==1.42.37"]oci = ["oci==2.166.0"]video = ["imageio[ffmpeg]==2.37.2", "numpy==2.4.1"]diff --git a/tests/ci/test_rust_agent.py b/tests/ci/test_rust_agent.pyindex fa5aba738..e628df2e6 100644--- a/tests/ci/test_rust_agent.py+++ b/tests/ci/test_rust_agent.py@@ -3,6 +3,7 @@ from __future__ import annotationsimport asyncioimport inspectimport json+import subprocessimport sysfrom pathlib import Pathfrom typing import Any, cast, get_args, get_origin, get_type_hints@@ -2667,6 +2668,28 @@ def test_rust_terminal_binary_finds_default_terminal_install(monkeypatch, tmp_paassert rust_service.find_browser_use_terminal_binary() == str(binary)+def test_rust_terminal_binary_from_installed_browser_use_core_answers_ping(monkeypatch):+ browser_use_core = pytest.importorskip('browser_use_core')+ import browser_use.rust.service as rust_service++ monkeypatch.delenv('BROWSER_USE_TERMINAL_BINARY', raising=False)++ binary = rust_service.find_browser_use_terminal_binary()+ assert binary == browser_use_core.binary_path('browser-use-terminal')++ proc = subprocess.run(+ [binary, 'sdk-server', '--transport', 'stdio'],+ input='{"jsonrpc":"2.0","id":1,"method":"runtime.ping","params":{}}\n',+ text=True,+ capture_output=True,+ timeout=10,+ check=True,+ )+ response = json.loads(proc.stdout.strip())+ assert response['result']['ok'] is True+ assert response['result']['sdk_protocol_version'] == 1++async def test_rust_sdk_client_start_wraps_missing_binary_error():import browser_use.rust.service as rust_service