diff --git a/README.md b/README.md index ad46f46c..7db25ac6 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ To run Playwright simply add following dependency to your Maven project: ``` +#### Is Playwright thread-safe? + +No, Playwright is not thread safe, i.e. all its methods as well as methods on all objects created by it (such as BrowserContext, Browser, Page etc.) are expected to be called on the same thread where Playwright object was created or proper synchronization should be implemented to ensure only one thread calls Playwright methods at any given time. Having said that it's okay to create new many Playwright instances each on its own thread. + ## Examples You can find Maven project with the examples [here](./examples).