ce34c0a4ff
The TypeScript definition erroneously made `options` required. We can fix it by providing a default value, which means users calling the function will be able to leave it blank without TS complaining. Issues like this are a +1 to porting our tests to TypeScript in order to catch these on our own test suite, so that's something we should look into.
636 B
636 B
Home > puppeteer > Page > goto
Page.goto() method
Signature:
goto(url: string, options?: WaitForOptions & {
referer?: string;
}): Promise<HTTPResponse>;
Parameters
Parameter | Type | Description |
---|---|---|
url | string | |
options | WaitForOptions & { referer?: string; } |
Returns:
Promise<HTTPResponse>