Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(java): fix Java doc of playwright create method (#20356)

chamu228112c7bda4513
diff --git a/docs/src/api/java.md b/docs/src/api/java.md
index f4460d9b13..51e43b8c78 100644
--- a/docs/src/api/java.md
+++ b/docs/src/api/java.md
@@ -55,7 +55,7 @@ Terminates this instance of Playwright, will also close all created browsers if
Launches new Playwright driver process and connects to it. [`method: Playwright.close`] should be called when the instance is no longer needed.
```java
-Playwright playwright = Playwright.create()) {
+Playwright playwright = Playwright.create();
Browser browser = playwright.webkit().launch();
Page page = browser.newPage();
page.navigate("https://www.w3.org/");