### 🚀 Feature Request Right now `page.waitForURL()` accepts a `string`, `RegExp` or a function. Now that [URLPattern](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API) is [supported by Node.js](https://nodejs.org/api/url.html#class-urlpattern) it makes sense to accept it as a parameter. ### Example ```js await page.click('a.delayed-navigation'); await page.waitForURL(new URLPattern({pathname: "/widget1"}); ``` ### Motivation This is a much nicer to use API than the alternatives.