docs(java): fix syntax error in Java example of JSHandle.getProperties (#21901)
This commit is contained in:
parent
3477c89f20
commit
086dec364b
|
|
@ -140,7 +140,7 @@ await handle.dispose();
|
||||||
```
|
```
|
||||||
|
|
||||||
```java
|
```java
|
||||||
JSHandle handle = page.evaluateHandle("() => ({window, document}"););
|
JSHandle handle = page.evaluateHandle("() => ({window, document})");
|
||||||
Map<String, JSHandle> properties = handle.getProperties();
|
Map<String, JSHandle> properties = handle.getProperties();
|
||||||
JSHandle windowHandle = properties.get("window");
|
JSHandle windowHandle = properties.get("window");
|
||||||
JSHandle documentHandle = properties.get("document");
|
JSHandle documentHandle = properties.get("document");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue