Skip to content

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

fix evaluate_tasks.py errors in CI

Nick Sweetinge3d21d33a15e
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 3c92038c9..57db0ea1b 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -146,6 +146,7 @@ jobs:
- name: Comment PR with agent evaluation results
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
+ continue-on-error: true
with:
script: |
const passed = parseInt(process.env.PASSED);
diff --git a/tests/ci/evaluate_tasks.py b/tests/ci/evaluate_tasks.py
index fe9f7ff77..53c4e46fd 100644
--- a/tests/ci/evaluate_tasks.py
+++ b/tests/ci/evaluate_tasks.py
@@ -78,7 +78,7 @@ async def run_single_task(task_file):
# Test if browser is working
try:
await session.start()
- page = await session.create_page()
+ page = await session.create_new_tab()
print('[DEBUG] Browser test: page created successfully', file=sys.stderr)
await page.goto('https://httpbin.org/get', timeout=10000)
print('[DEBUG] Browser test: navigation successful', file=sys.stderr)