From d9d826b7f60c7278d742543b5c21003428b833f8 Mon Sep 17 00:00:00 2001 From: Akul Srivastava Date: Wed, 6 Apr 2022 15:30:51 +0530 Subject: [PATCH] docs: fixes typo (#13094) Co-authored-by: Max Schmitt --- docs/src/api/class-browsertype.md | 4 ++-- docs/src/api/params.md | 2 +- packages/playwright-core/types/types.d.ts | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/src/api/class-browsertype.md b/docs/src/api/class-browsertype.md index 71041170d7..fe197d7776 100644 --- a/docs/src/api/class-browsertype.md +++ b/docs/src/api/class-browsertype.md @@ -87,7 +87,7 @@ class BrowserTypeExamples ## async method: BrowserType.connect - returns: <[Browser]> -This methods attaches Playwright to an existing browser instance. +This method attaches Playwright to an existing browser instance. ### param: BrowserType.connect.wsEndpoint - `wsEndpoint` <[string]> @@ -120,7 +120,7 @@ Maximum time in milliseconds to wait for the connection to be established. Defau ## async method: BrowserType.connectOverCDP - returns: <[Browser]> -This methods attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. +This method attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. The default browser context is accessible via [`method: Browser.contexts`]. diff --git a/docs/src/api/params.md b/docs/src/api/params.md index 738bbc74c0..2b0f77a357 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -628,7 +628,7 @@ is considered matching if all specified properties match. - `url` <[string]|[RegExp]|[function]\([URL]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if -the parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly +the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string. ## wait-for-event-event diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 8344ff26ea..335cf41546 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -3809,7 +3809,7 @@ export interface Page { /** * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the - * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to * the string. */ url?: string|RegExp|((url: URL) => boolean); @@ -3922,7 +3922,7 @@ export interface Page { * * Shortcut for main frame's * [frame.waitForURL(url[, options])](https://playwright.dev/docs/api/class-frame#frame-wait-for-url). - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to * the string. * @param options */ @@ -6020,7 +6020,7 @@ export interface Frame { /** * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the - * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to * the string. */ url?: string|RegExp|((url: URL) => boolean); @@ -6052,7 +6052,7 @@ export interface Frame { * await frame.waitForURL('**\/target.html'); * ``` * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to * the string. * @param options */ @@ -9922,7 +9922,7 @@ export interface Locator { */ export interface BrowserType { /** - * This methods attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. + * This method attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. * * The default browser context is accessible via * [browser.contexts()](https://playwright.dev/docs/api/class-browser#browser-contexts). @@ -9937,7 +9937,7 @@ export interface BrowserType { * @deprecated */ /** - * This methods attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. + * This method attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. * * The default browser context is accessible via * [browser.contexts()](https://playwright.dev/docs/api/class-browser#browser-contexts). @@ -9948,7 +9948,7 @@ export interface BrowserType { */ connectOverCDP(options: ConnectOverCDPOptions & { wsEndpoint?: string }): Promise; /** - * This methods attaches Playwright to an existing browser instance. + * This method attaches Playwright to an existing browser instance. * @param wsEndpoint A browser websocket endpoint to connect to. * @param options */ @@ -9960,7 +9960,7 @@ export interface BrowserType { * @deprecated */ /** - * This methods attaches Playwright to an existing browser instance. + * This method attaches Playwright to an existing browser instance. * @param wsEndpoint A browser websocket endpoint to connect to. * @param options */