URL to navigate page to. The url should include scheme, e.g. https://. When a baseURL via the context options was provided and the passed URL is a path, it gets merged via the
new URL() constructor.
Optional options: { Optional polling?: number | "raf"Optional timeout?: number
Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first non-redirect response.
The method will throw an error if:
timeoutis exceeded during navigation.The method will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not Found" and 500 "Internal Server Error".
Shortcut for main frame's frame.goto(url[, options])