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 syntax error in Java example of JSHandle.getProperties (#21901)

Faisal Salman086dec364b1c
diff --git a/docs/src/api/class-jshandle.md b/docs/src/api/class-jshandle.md
index 4229f739cc..4a7801e23a 100644
--- a/docs/src/api/class-jshandle.md
+++ b/docs/src/api/class-jshandle.md
@@ -140,7 +140,7 @@ await handle.dispose();
```
```java
-JSHandle handle = page.evaluateHandle("() => ({window, document}"););
+JSHandle handle = page.evaluateHandle("() => ({window, document})");
Map<String, JSHandle> properties = handle.getProperties();
JSHandle windowHandle = properties.get("window");
JSHandle documentHandle = properties.get("document");