Skip to content

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

fix tests to use playwright too

Nick Sweeting3f4c918acf1d
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 44ae49b3c..ed45cd7be 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -20,6 +20,7 @@ jobs:
test:
# TODO:
# - browser/patchright
+ # - browser/playwright
# - browser/user_binary
# - browser/remote_cdp
# - models/openai
@@ -52,7 +53,7 @@ jobs:
- run: uv sync
- name: Detect installed Playwright or Patchright version
- run: echo "PLAYWRIGHT_VERSION=$(uv pip list --format json | jq -r '.[] | select(.name == "patchright") | .version')" >> $GITHUB_ENV
+ run: echo "PLAYWRIGHT_VERSION=$(uv pip list --format json | jq -r '.[] | select(.name == "playwright") | .version')" >> $GITHUB_ENV
- name: Cache playwright binaries
uses: actions/cache@v3
@@ -61,6 +62,6 @@ jobs:
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- - run: patchright install --no-shell chromium
+ - run: playwright install --no-shell chromium
- run: pytest tests/${{ matrix.test }}.py
diff --git a/README.md b/README.md
index e2394db10..83477eb49 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ For memory functionality (requires Python<3.13 due to PyTorch compatibility):
pip install "browser-use[memory]"
```
-Install Patchright:
+Install the browser:
```bash
playwright install chromium --with-deps --no-shell
```