You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the new methods [`method: Page.routeFromHAR`] or [`method: BrowserContext.routeFromHAR`] to serve matching responses from the [HAR](http://www.softwareishard.com/blog/har-12-spec/) file:
34
+
35
+
36
+
```java
37
+
context.routeFromHAR(Paths.get("example.har"));
38
+
```
39
+
40
+
Read more in [our documentation](./network#record-and-replay-requests).
41
+
42
+
43
+
### Advanced Routing
44
+
45
+
You can now use [`method: Route.fallback`] to defer routing to other handlers.
if ("image".equals(route.request().resourceType()))
60
+
route.abort();
61
+
else
62
+
route.fallback();
63
+
});
64
+
```
65
+
66
+
Note that the new methods [`method: Page.routeFromHAR`] and [`method: BrowserContext.routeFromHAR`] also participate in routing and could be deferred to.
67
+
68
+
### Web-First Assertions Update
69
+
70
+
* New method [`method: LocatorAssertions.toHaveValues`] that asserts all selected values of `<select multiple>` element.
71
+
* Methods [`method: LocatorAssertions.toContainText`] and [`method: LocatorAssertions.toHaveText`] now accept `ignoreCase` option.
72
+
73
+
### Miscellaneous
74
+
75
+
* If there's a service worker that's in your way, you can now easily disable it with a new context option `serviceWorkers`:
0 commit comments