Skip to content

Commit 8dfe959

Browse files
authored
Added example in README.md for Gradle project (#1064)
1 parent 5979077 commit 8dfe959

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ To run Playwright simply add following dependency to your Maven project:
4747
</dependency>
4848
```
4949

50+
To run Playwright using Gradle add following dependency to your build.gradle file:
51+
52+
```json lines
53+
dependencies {
54+
implementation group: 'com.microsoft.playwright', name: 'playwright', version: '1.25.0'
55+
}
56+
```
57+
5058
#### Is Playwright thread-safe?
5159

5260
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 multiple Playwright instances each on its own thread.

0 commit comments

Comments
 (0)