You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
13
13
Headless execution is supported for all browsers on all platforms.
14
14
15
15
*[Usage](#usage)
16
+
-[Record and generate code](#record-and-generate-code)
16
17
-[Sync API](#sync-api)
17
18
-[Async API](#async-api)
18
19
-[With pytest](#with-pytest)
@@ -25,13 +26,22 @@ Headless execution is supported for all browsers on all platforms.
25
26
26
27
## Usage
27
28
28
-
```
29
+
```sh
29
30
pip install playwright
30
31
python -m playwright install
31
32
```
32
33
33
34
This installs Playwright and browser binaries for Chromium, Firefox and WebKit. Playwright requires Python 3.7+.
34
35
36
+
#### Record and generate code
37
+
38
+
Playwright can record user interactions in a browser and generate code. [See demo](https://user-images.githubusercontent.com/284612/95930164-ad52fb80-0d7a-11eb-852d-04bfd19de800.gif).
39
+
40
+
```sh
41
+
# Pass --help to see all options
42
+
python -m playwright codegen
43
+
```
44
+
35
45
Playwright offers both sync (blocking) API and async API. They are identical in terms of capabilities and only differ in how one consumes the API.
0 commit comments