🚀 Feature Request
Right now page.waitForURL() accepts a string, RegExp or a function.
Now that URLPattern is supported by Node.js it makes sense to accept it as a parameter.
Example
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.