From 43a621e97d5461595f04a1b1600de7648af9f7c3 Mon Sep 17 00:00:00 2001 From: Ross Wollman Date: Mon, 27 Jun 2022 20:34:30 -0700 Subject: [PATCH] docs: fix routing and har examples (#15162) --- docs/src/network.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/network.md b/docs/src/network.md index 00a546f88e..9faabbbb95 100644 --- a/docs/src/network.md +++ b/docs/src/network.md @@ -740,7 +740,7 @@ await context.close(); ```java BrowserContext context = browser.newContext(new Browser.NewContextOptions() .setRecordHarPath(Paths.get("example.har")) - .setRecordHarUrlFilter("**/api/**"); + .setRecordHarUrlFilter("**/api/**")); // ... Perform actions ... @@ -798,13 +798,13 @@ page.routeFromHAR(Paths.get("example.har")); ```python async # Either use a matching response from the HAR, # or abort the request if nothing matches. -await page.routeFromHAR("example.har") +await page.route_from_har("example.har") ``` ```python sync # Either use a matching response from the HAR, # or abort the request if nothing matches. -page.routeFromHAR("example.har") +page.route_from_har("example.har") ``` ```csharp