docs(java): fix Java doc of playwright create method (#20356)
This commit is contained in:
parent
1196b4f0f5
commit
112c7bda45
|
|
@ -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.
|
Launches new Playwright driver process and connects to it. [`method: Playwright.close`] should be called when the instance is no longer needed.
|
||||||
|
|
||||||
```java
|
```java
|
||||||
Playwright playwright = Playwright.create()) {
|
Playwright playwright = Playwright.create();
|
||||||
Browser browser = playwright.webkit().launch();
|
Browser browser = playwright.webkit().launch();
|
||||||
Page page = browser.newPage();
|
Page page = browser.newPage();
|
||||||
page.navigate("https://www.w3.org/");
|
page.navigate("https://www.w3.org/");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue