puppeteer/new-docs/puppeteer.page.goto.md
Jack Franklin ce34c0a4ff
fix: page.goto options type should be optional (#6038)
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.
2020-06-18 12:44:46 +01:00

26 lines
636 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [goto](./puppeteer.page.goto.md)
## Page.goto() method
<b>Signature:</b>
```typescript
goto(url: string, options?: WaitForOptions & {
referer?: string;
}): Promise<HTTPResponse>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| url | string | |
| options | WaitForOptions &amp; { referer?: string; } | |
<b>Returns:</b>
Promise&lt;[HTTPResponse](./puppeteer.httpresponse.md)<!-- -->&gt;