1
0
mirror of synced 2026-08-02 21:46:55 +00:00

docs: update examples to use set* instead of with* (#325)

This commit is contained in:
Yury Semikhatsky
2021-03-05 14:29:41 -08:00
committed by GitHub
parent 617822fa18
commit 7d333f994e
4 changed files with 21 additions and 21 deletions
@@ -25,7 +25,7 @@ public class WebKitScreenshot {
Browser browser = playwright.webkit().launch();
Page page = browser.newPage();
page.navigate("http://whatsmyuseragent.org/");
page.screenshot(new Page.ScreenshotOptions().withPath(Paths.get("example.png")));
page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("example.png")));
}
}
}