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
Copy file name to clipboardExpand all lines: docs/src/release-notes-js.md
+76Lines changed: 76 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,82 @@ toc_max_heading_level: 2
6
6
7
7
import LiteYouTube from '@site/src/components/LiteYouTube';
8
8
9
+
## Version 1.42
10
+
11
+
### New APIs
12
+
13
+
- New method [`method: Page.addLocatorHandler`] registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay. Here is an example that closes a cookie dialog when it appears:
14
+
```js
15
+
// Setup the handler.
16
+
awaitpage.addLocatorHandler(page.getByRole('button', { name:'Accept all cookies' }), async () => {
17
+
awaitpage.getByRole('button', { name:'Reject all cookies' }).click();
-`expect(callback).toPass()` timeout can now be configured by `expect.toPass.timeout` option [globally](./api/class-testconfig#test-config-expect) or in [project config](./api/class-testproject#test-project-expect)
26
+
27
+
-[`event: ElectronApplication.console`] event is emitted when Electron main process calls console API methods.
-[`method: Page.pdf`] accepts two new options [`tagged`](./api/class-page#page-pdf-option-tagged) and [`outline`](./api/class-page#page-pdf-option-outline).
69
+
70
+
### Announcements
71
+
72
+
* ⚠️ Ubuntu 18 is not supported anymore.
73
+
74
+
### Browser Versions
75
+
76
+
* Chromium 123.0.6312.4
77
+
* Mozilla Firefox 123.0
78
+
* WebKit 17.4
79
+
80
+
This version was also tested against the following stable channels:
0 commit comments