Skip to content

Commit 9b7c1a2

Browse files
Update playwright.md
1 parent 922907f commit 9b7c1a2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

markdown/playwright.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Install from the [Setup](../README.md#setup) section
44
* Usage
5+
* `pip`
56
```bash
67
# install
78
pip install --upgrade pip
@@ -11,6 +12,19 @@
1112
# download new browsers (chromedriver, gecko)
1213
npx playwright install
1314

15+
* `pipx`
16+
```bash
17+
# install
18+
pipx install playwright # install/upgrade
19+
cd ~/.local/pipx/venvs/playwright
20+
21+
# inject dependencies manually
22+
source bin/activate
23+
playwright install
24+
deactivate
25+
```
26+
* Both
27+
```bash
1428
# generate code via macro
1529
playwright codegen wikipedia.org
1630
```

0 commit comments

Comments
 (0)