Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: fixes typo (#13094)

Akul Srivastavad9d826b7f60c
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<Unused = {}> {
/**
- * 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<Unused = {}> {
* @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<Unused = {}> {
*/
connectOverCDP(options: ConnectOverCDPOptions & { wsEndpoint?: string }): Promise<Browser>;
/**
- * 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<Unused = {}> {
* @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
*/