diff --git a/docs/src/api/class-consolemessage.md b/docs/src/api/class-consolemessage.md index 06776c8e71..2268ee3ed1 100644 --- a/docs/src/api/class-consolemessage.md +++ b/docs/src/api/class-consolemessage.md @@ -2,7 +2,7 @@ * since: v1.8 [ConsoleMessage] objects are dispatched by page via the [`event: Page.console`] event. -For each console messages logged in the page there will be corresponding event in the Playwright +For each console message logged in the page there will be corresponding event in the Playwright context. ```js diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 70a25c3878..fa24e066b6 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -17209,8 +17209,8 @@ export interface BrowserServer { /** * {@link ConsoleMessage} objects are dispatched by page via the - * [page.on('console')](https://playwright.dev/docs/api/class-page#page-event-console) event. For each console - * messages logged in the page there will be corresponding event in the Playwright context. + * [page.on('console')](https://playwright.dev/docs/api/class-page#page-event-console) event. For each console message + * logged in the page there will be corresponding event in the Playwright context. * * ```js * // Listen for all console logs