Skip to content

Commit ebb38b2

Browse files
authored
docs(readme): point to codegen (microsoft#235)
1 parent 090251a commit ebb38b2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
1313
Headless execution is supported for all browsers on all platforms.
1414

1515
* [Usage](#usage)
16+
- [Record and generate code](#record-and-generate-code)
1617
- [Sync API](#sync-api)
1718
- [Async API](#async-api)
1819
- [With pytest](#with-pytest)
@@ -25,13 +26,22 @@ Headless execution is supported for all browsers on all platforms.
2526

2627
## Usage
2728

28-
```
29+
```sh
2930
pip install playwright
3031
python -m playwright install
3132
```
3233

3334
This installs Playwright and browser binaries for Chromium, Firefox and WebKit. Playwright requires Python 3.7+.
3435

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+
3545
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.
3646

3747
#### Sync API

0 commit comments

Comments
 (0)