Skip to content

Commit 7f3db2f

Browse files
authored
fix: updated dead links to use playwright homepage
1 parent 8547c70 commit 7f3db2f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You can find Maven project with the examples [here](./examples).
6565

6666
#### Page screenshot
6767

68-
This code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.
68+
This code snippet navigates to Playwright homepage in Chromium, Firefox and WebKit, and saves 3 screenshots.
6969

7070
```java
7171
import com.microsoft.playwright.*;
@@ -86,7 +86,7 @@ public class PageScreenshot {
8686
try (Browser browser = browserType.launch()) {
8787
BrowserContext context = browser.newContext();
8888
Page page = context.newPage();
89-
page.navigate("http://whatsmyuseragent.org/");
89+
page.navigate("https://playwright.dev/");
9090
page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("screenshot-" + browserType.name() + ".png")));
9191
}
9292
}

examples/src/main/java/org/example/PageScreenshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void main(String[] args) {
3434
try (Browser browser = browserType.launch()) {
3535
BrowserContext context = browser.newContext();
3636
Page page = context.newPage();
37-
page.navigate("http://whatsmyuseragent.org/");
37+
page.navigate("https://playwright.dev/");
3838
page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("screenshot-" + browserType.name() + ".png")));
3939
}
4040
}

examples/src/main/java/org/example/WebKitScreenshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args) {
2424
try (Playwright playwright = Playwright.create()) {
2525
Browser browser = playwright.webkit().launch();
2626
Page page = browser.newPage();
27-
page.navigate("http://whatsmyuseragent.org/");
27+
page.navigate("https://playwright.dev/");
2828
page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("example.png")));
2929
}
3030
}

0 commit comments

Comments
 (0)