File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,6 +261,40 @@ await Page.BringToFrontAsync();
261261
262262---
263263
264+ ### ClearConsoleMessagesAsync { #page - clear - console - messages }
265+
266+ <font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added in: v1.59</font ><x-search >page.ClearConsoleMessagesAsync</x-search >
267+
268+ Clears all stored console messages from this page. Subsequent calls to [ Page.ConsoleMessagesAsync()] ( /api/class-page.mdx#page-console-messages ) will only return messages logged after the clear.
269+
270+ ** Usage**
271+
272+ ``` csharp
273+ await Page .ClearConsoleMessagesAsync ();
274+ ```
275+
276+ ** Returns**
277+ - [ void] <a aria-hidden = " true" tabIndex = " -1" class = " list-anchor-link" id = " page-clear-console-messages-return" /><a href = " #page-clear-console-messages-return" class = " list-anchor" >#</a >
278+
279+ ---
280+
281+ ### ClearPageErrorsAsync { #page - clear - page - errors }
282+
283+ <font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added in: v1.59</font ><x-search >page.ClearPageErrorsAsync</x-search >
284+
285+ Clears all stored page errors from this page. Subsequent calls to [ Page.PageErrorsAsync()] ( /api/class-page.mdx#page-page-errors ) will only return errors thrown after the clear.
286+
287+ ** Usage**
288+
289+ ``` csharp
290+ await Page .ClearPageErrorsAsync ();
291+ ```
292+
293+ ** Returns**
294+ - [ void] <a aria-hidden = " true" tabIndex = " -1" class = " list-anchor-link" id = " page-clear-page-errors-return" /><a href = " #page-clear-page-errors-return" class = " list-anchor" >#</a >
295+
296+ ---
297+
264298### CloseAsync { #page - close }
265299
266300<font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added before v1.9</font ><x-search >page.CloseAsync</x-search >
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import Tabs from '@theme/Tabs';
77import TabItem from ' @theme/TabItem' ;
88import HTMLCard from ' @site/src/components/HTMLCard' ;
99
10+ import LiteYouTube from ' @site/src/components/LiteYouTube' ;
11+
1012## Version 1.58
1113
1214### UI Mode and Trace Viewer Improvements
@@ -1119,11 +1121,7 @@ This version was also tested against the following stable channels:
11191121
11201122## Version 1.24
11211123
1122- <div className = " embed-youtube" >
1123-
1124- <iframe width = " 560" height = " 315" src = " https://www.youtube-nocookie.com/embed/9F05o1shxcY" title = " YouTube video player" frameborder = " 0" allow = " accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen ></iframe >
1125-
1126- </div >
1124+ <LiteYouTube id = " 9F05o1shxcY" title = " Playwright 1.24" />
11271125
11281126### 🐂 Debian 11 Bullseye Support
11291127
Original file line number Diff line number Diff line change @@ -264,6 +264,40 @@ Page.bringToFront();
264264
265265---
266266
267+ ### clearConsoleMessages { #page - clear - console - messages }
268+
269+ <font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added in: v1.59</font ><x-search >page.clearConsoleMessages</x-search >
270+
271+ Clears all stored console messages from this page. Subsequent calls to [ Page.consoleMessages()] ( /api/class-page.mdx#page-console-messages ) will only return messages logged after the clear.
272+
273+ ** Usage**
274+
275+ ``` java
276+ Page . clearConsoleMessages();
277+ ```
278+
279+ ** Returns**
280+ - [ void] <a aria-hidden = " true" tabIndex = " -1" class = " list-anchor-link" id = " page-clear-console-messages-return" /><a href = " #page-clear-console-messages-return" class = " list-anchor" >#</a >
281+
282+ ---
283+
284+ ### clearPageErrors { #page - clear - page - errors }
285+
286+ <font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added in: v1.59</font ><x-search >page.clearPageErrors</x-search >
287+
288+ Clears all stored page errors from this page. Subsequent calls to [ Page.pageErrors()] ( /api/class-page.mdx#page-page-errors ) will only return errors thrown after the clear.
289+
290+ ** Usage**
291+
292+ ``` java
293+ Page . clearPageErrors();
294+ ```
295+
296+ ** Returns**
297+ - [ void] <a aria-hidden = " true" tabIndex = " -1" class = " list-anchor-link" id = " page-clear-page-errors-return" /><a href = " #page-clear-page-errors-return" class = " list-anchor" >#</a >
298+
299+ ---
300+
267301### close { #page - close }
268302
269303<font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added before v1.9</font ><x-search >page.close</x-search >
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import Tabs from '@theme/Tabs';
77import TabItem from ' @theme/TabItem' ;
88import HTMLCard from ' @site/src/components/HTMLCard' ;
99
10+ import LiteYouTube from ' @site/src/components/LiteYouTube' ;
11+
1012## Version 1.58
1113
1214### UI Mode and Trace Viewer Improvements
@@ -1148,11 +1150,7 @@ This version was also tested against the following stable channels:
11481150
11491151## Version 1.24
11501152
1151- < div className= " embed-youtube" >
1152-
1153- < iframe width= " 560" height= " 315" src= " https://www.youtube-nocookie.com/embed/9F05o1shxcY" title= " YouTube video player" frameborder= " 0" allow= " accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>< / iframe>
1154-
1155- < / div>
1153+ < LiteYouTube id= " 9F05o1shxcY" title= " Playwright 1.24" / >
11561154
11571155### 🐂 Debian 11 Bullseye Support
11581156
Original file line number Diff line number Diff line change @@ -340,6 +340,40 @@ await page.bringToFront();
340340
341341---
342342
343+ ### clearConsoleMessages { #page - clear - console - messages }
344+
345+ <font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added in: v1.59</font ><x-search >page.clearConsoleMessages</x-search >
346+
347+ Clears all stored console messages from this page. Subsequent calls to [ page.consoleMessages()] ( /api/class-page.mdx#page-console-messages ) will only return messages logged after the clear.
348+
349+ ** Usage**
350+
351+ ``` js
352+ await page .clearConsoleMessages ();
353+ ```
354+
355+ ** Returns**
356+ - [ Promise] < ; [ void] > ; <a aria-hidden = " true" tabIndex = " -1" class = " list-anchor-link" id = " page-clear-console-messages-return" /><a href = " #page-clear-console-messages-return" class = " list-anchor" >#</a >
357+
358+ ---
359+
360+ ### clearPageErrors { #page - clear - page - errors }
361+
362+ <font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added in: v1.59</font ><x-search >page.clearPageErrors</x-search >
363+
364+ Clears all stored page errors from this page. Subsequent calls to [ page.pageErrors()] ( /api/class-page.mdx#page-page-errors ) will only return errors thrown after the clear.
365+
366+ ** Usage**
367+
368+ ``` js
369+ await page .clearPageErrors ();
370+ ```
371+
372+ ** Returns**
373+ - [ Promise] < ; [ void] > ; <a aria-hidden = " true" tabIndex = " -1" class = " list-anchor-link" id = " page-clear-page-errors-return" /><a href = " #page-clear-page-errors-return" class = " list-anchor" >#</a >
374+
375+ ---
376+
343377### close { #page - close }
344378
345379<font size = " 2" style = { {position: " relative" , top: " -20px" }} >Added before v1.9</font ><x-search >page.close</x-search >
Original file line number Diff line number Diff line change @@ -421,6 +421,40 @@ page.bring_to_front()
421421
422422---
423423
424+ ### clear_console_messages {#page-clear-console-messages}
425+
426+ <font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.59</font><x-search>page.clear_console_messages</x-search>
427+
428+ Clears all stored console messages from this page. Subsequent calls to [page.console_messages()](/api/class-page.mdx#page-console-messages) will only return messages logged after the clear.
429+
430+ **Usage**
431+
432+ ```python
433+ page.clear_console_messages()
434+ ```
435+
436+ **Returns**
437+ - [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-clear-console-messages-return"/><a href="#page-clear-console-messages-return" class="list-anchor">#</a>
438+
439+ ---
440+
441+ ### clear_page_errors {#page-clear-page-errors}
442+
443+ <font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.59</font><x-search>page.clear_page_errors</x-search>
444+
445+ Clears all stored page errors from this page. Subsequent calls to [page.page_errors()](/api/class-page.mdx#page-page-errors) will only return errors thrown after the clear.
446+
447+ **Usage**
448+
449+ ```python
450+ page.clear_page_errors()
451+ ```
452+
453+ **Returns**
454+ - [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-clear-page-errors-return"/><a href="#page-clear-page-errors-return" class="list-anchor">#</a>
455+
456+ ---
457+
424458### close {#page-close}
425459
426460<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>page.close</x-search>
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import Tabs from '@theme/Tabs';
77import TabItem from '@theme/TabItem';
88import HTMLCard from '@site/src/components/HTMLCard';
99
10+ import LiteYouTube from '@site/src/components/LiteYouTube';
11+
1012## Version 1.58
1113
1214### UI Mode and Trace Viewer Improvements
@@ -1058,11 +1060,7 @@ This version was also tested against the following stable channels:
10581060
10591061## Version 1.24
10601062
1061- <div className = " embed-youtube" >
1062-
1063- <iframe width = " 560" height = " 315" src = " https://www.youtube-nocookie.com/embed/9F05o1shxcY" title = " YouTube video player" frameborder = " 0" allow = " accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen ></iframe >
1064-
1065- </div >
1063+ <LiteYouTube id="9F05o1shxcY" title="Playwright 1.24" />
10661064
10671065### 🐂 Debian 11 Bullseye Support
10681066
You can’t perform that action at this time.
0 commit comments