From c3ee1cf9c70f5f364e4c7b5147610be2b9efff95 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 22 Feb 2021 10:23:02 -0800 Subject: [PATCH] chore(docs): use shared template for waitFroNavigation.url (#5520) --- docs/src/api/class-frame.md | 5 +---- types/types.d.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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);