Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Headless execution is supported for all browsers on all platforms.
- [Mobile and geolocation](#mobile-and-geolocation)
- [Evaluate JS in browser](#evaluate-js-in-browser)
- [Intercept network requests](#intercept-network-requests)
- [Known issues](#known-issues)
- [Documentation](#documentation)

## Usage - pip
Expand Down Expand Up @@ -298,6 +299,12 @@ asyncio.run(main())

</details>

## Known issues

### `time.sleep()` leads to outdated state

You need to use `page.wait_for_timeout(5000)` instead of `time.sleep()`. It is better to not wait for a timeout at all, but sometimes it is useful for debugging. In these cases, use our wait method instead of the system one. This is because we internally rely on asynchronous operations and when using `time.sleep(5)` they can't get processed correctly.

## Documentation

Check out our [new documentation site](https://playwright.dev/python/docs/intro)!