Skip to content

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

chore(docs): use shared template for waitFroNavigation.url (#5520)

Yury Semikhatskyc3ee1cf9c70f
diff --git a/docs/src/api/class-frame.md b/docs/src/api/class-frame.md
index 372d9558cb..8a0174cdea 100644
--- a/docs/src/api/class-frame.md
+++ b/docs/src/api/class-frame.md
@@ -1156,10 +1156,7 @@ a navigation.
### option: Frame.waitForNavigation.timeout = %%-navigation-timeout-%%
-### option: Frame.waitForNavigation.url
-- `url` <[string]|[RegExp]|[function]\([URL]\):[boolean]>
-
-URL string, URL regex pattern or predicate receiving [URL] to match while waiting for the navigation.
+### option: Frame.waitForNavigation.url = %%-wait-for-navigation-url-%%
### option: Frame.waitForNavigation.waitUntil = %%-navigation-wait-until-%%
diff --git a/types/types.d.ts b/types/types.d.ts
index f7f7820fd6..b01db70419 100644
--- a/types/types.d.ts
+++ b/types/types.d.ts
@@ -4457,7 +4457,7 @@ export interface Frame {
timeout?: number;
/**
- * URL string, URL regex pattern or predicate receiving [URL] to match while waiting for the navigation.
+ * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
*/
url?: string|RegExp|((url: URL) => boolean);