Skip to content

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

docs: spelling

Pavel Feldmanfa89b9a554f9
diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md
index 97d29a1230..371ca53b90 100644
--- a/docs/src/api/class-browsercontext.md
+++ b/docs/src/api/class-browsercontext.md
@@ -836,7 +836,7 @@ Returns the newly created session.
### param: BrowserContext.newCDPSession.page
- `page` <[Page]|[Frame]>
-Target to create new session for. For backwards-compatability, this parameter is
+Target to create new session for. For backwards-compatibility, this parameter is
named `page`, but it can be a `Page` or `Frame` type.
## async method: BrowserContext.newPage
diff --git a/types/types.d.ts b/types/types.d.ts
index 525ed4e374..2161c13e64 100644
--- a/types/types.d.ts
+++ b/types/types.d.ts
@@ -5478,7 +5478,7 @@ export interface BrowserContext {
* > NOTE: CDP sessions are only supported on Chromium-based browsers.
*
* Returns the newly created session.
- * @param page Target to create new session for. For backwards-compatability, this parameter is named `page`, but it can be a `Page` or `Frame` type.
+ * @param page Target to create new session for. For backwards-compatibility, this parameter is named `page`, but it can be a `Page` or `Frame` type.
*/
newCDPSession(page: Page|Frame): Promise<CDPSession>;