From 707c35e7e3979b7b92cbccc0a6de6c7cd81ec170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=84=88=EC=9D=B4=EB=A6=84?= <너이메일> Date: Wed, 13 May 2026 17:58:19 +0900 Subject: [PATCH] docs: add Browser Use compare API curl snippet --- docs/browser-use-debugging.html | 2 ++ tests/test_metadata.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/docs/browser-use-debugging.html b/docs/browser-use-debugging.html index 480e04c0..2111760b 100644 --- a/docs/browser-use-debugging.html +++ b/docs/browser-use-debugging.html @@ -421,6 +421,8 @@
browsertrace list
browsertrace compare <failed_run_id> <success_run_id>
browsertrace compare <failed_run_id> <success_run_id> --json
+ While the local BrowserTrace UI is running, local wrappers and tools can request the same first-divergence payload through the web API:
+curl http://127.0.0.1:3000/api/compare/<failed_run_id>/<success_run_id>
Example compare output:
$ browsertrace compare failed-local-html-upload good-local-html-upload
First divergent step: 3
diff --git a/tests/test_metadata.py b/tests/test_metadata.py
index a9c92da0..7cb06814 100644
--- a/tests/test_metadata.py
+++ b/tests/test_metadata.py
@@ -3995,6 +3995,12 @@ def test_browser_use_guide_documents_compare_run_metadata_checklist():
1,
)[0]
assert "browsertrace compare <failed_run_id> <success_run_id>" in section
+ assert (
+ "curl http://127.0.0.1:3000/api/compare/<failed_run_id>/<success_run_id>"
+ in section
+ )
+ assert "local BrowserTrace UI is running" in section
+ assert "same first-divergence payload" in section
assert "first divergent step" in section
assert "Example compare output:" in section
assert "$ browsertrace compare failed-local-html-upload good-local-html-upload" in section