Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(mock): fix Java page.route example (#42380)

Bertrand Lorentz12b611da20d2
diff --git a/docs/src/mock.md b/docs/src/mock.md
index aa0738fa1a..9734e300d7 100644
--- a/docs/src/mock.md
+++ b/docs/src/mock.md
@@ -81,7 +81,7 @@ await Expect(page.GetByTextAsync("Strawberry")).ToBeVisibleAsync();
```java
// Intercept the route to the fruit API
-page.route("https://fruit.ceo/api/breeds/image/random", route -> {
+page.route("*/**/api/v1/fruits", route -> {
List<Dictionary<String, Object>> data = new ArrayList<Dictionary<String, Object>>();
Hashtable<String, Object> dict = new Hashtable<String, Object>();
dict.put("name", "Strawberry");