You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [page.goto](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagegotourl-options).
135
-
136
-
Additionally, you can setup:
137
-
138
-
##### waitFor
139
-
140
-
type: `string`|`function`|`number`</br>
141
-
default: `0`
142
-
143
-
Wait a quantity of time, selector or function using [page.waitFor](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagewaitforselectororfunctionortimeout-options-args).
144
-
145
-
##### waitUntil
146
-
147
-
type: `string[]`</br>
148
-
default: `['networkidle0']`
149
-
150
-
Specify a list of events until consider navigation succeeded, using [page.waitForNavigation](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagewaitfornavigationoptions).
151
-
152
-
##### userAgent
153
-
154
-
It will setup a custom user agent, using [page.setUserAgent](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetuseragentuseragent) method.
155
-
156
-
##### viewport
157
-
158
-
It will setup a custom viewport, using [page.setViewport](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetviewportviewport) method.
159
-
160
-
##### cookies
161
-
162
-
type: `object[]` </br>
163
-
164
-
A collection of [cookie's object](https://github.com/GoogleChrome/puppeteer/blob/v1.16.0/docs/api.md#pagesetcookiecookies) to set in the requests send.
165
-
166
-
##### headers
167
-
168
-
type: `object` </br>
169
-
170
-
An object containing additional HTTP headers to be sent with every request.
171
-
172
-
##### adblock
173
-
174
-
type: `boolean`</br>
175
-
default: `true`
176
-
177
-
It will be abort requests detected as ads.
134
+
See [browserless#goto](/#gotopage-options).
178
135
179
136
### .text(url, options)
180
137
181
-
It returns the full text content from the target `url`.
138
+
It serializes the content from the target `url` into plain text.
See [page.pdf](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions).
170
+
See [browserless#goto](/#gotopage-options).
214
171
215
172
Additionally, you can setup:
216
173
@@ -221,21 +178,6 @@ default: `'screen'`
221
178
222
179
Changes the CSS media type of the page using [page.emulateMedia](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pageemulatemediamediatype).
223
180
224
-
##### device
225
-
226
-
type: `string`</br>
227
-
default: `'macbook pro 13'`
228
-
229
-
It specifies the [device](#devices) descriptor to use in order to retrieve `userAgent` and `viewport`
230
-
231
-
##### userAgent
232
-
233
-
It will setup a custom user agent, using [page.setUserAgent](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetuseragentuseragent) method.
234
-
235
-
##### viewport
236
-
237
-
It will setup a custom viewport, using [page.setViewport](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetviewportviewport) method.
See [page.screenshot](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagescreenshotoptions).
197
+
See [browserless#goto](/#gotopage-options).
256
198
257
199
Additionally, you can setup:
258
200
259
-
##### device
260
-
261
-
type: `string`</br>
262
-
default: `'macbook pro 13'`
263
-
264
-
It specifies the [device](#devices) descriptor to use in order to retrieve `userAgent` and `viewport`
201
+
##### hide
265
202
266
-
##### userAgent
267
-
268
-
It will setup a custom user agent, using [page.setUserAgent](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetuseragentuseragent) method.
269
-
270
-
##### viewport
271
-
272
-
It will setup a custom viewport, using [page.setViewport](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetviewportviewport) method.
273
-
274
-
##### hideElements
275
-
276
-
type: `array[]`</br>
203
+
type: `string` | `string[]`</br>
277
204
278
205
Hide DOM elements matching the given [CSS selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).
279
206
@@ -283,32 +210,16 @@ Can be useful for cleaning up the page.
Inject [JavaScript modules](https://developers.google.com/web/fundamentals/primers/modules) into the page.
327
238
@@ -337,7 +248,7 @@ Accepts an array of inline code, absolute URLs, and local file paths (must have
337
248
338
249
##### scripts
339
250
340
-
type: `string[]`
251
+
type: `string` | `string[]`</br>
341
252
342
253
Same as the `modules` option, but instead injects the code as [`<script>` instead of `<script type="module">`](https://developers.google.com/web/fundamentals/primers/modules). Prefer the `modules` option whenever possible.
343
254
@@ -351,7 +262,7 @@ Same as the `modules` option, but instead injects the code as [`<script>` instea
351
262
352
263
##### styles
353
264
354
-
type: `string[]`
265
+
type: `string` | `string[]`</br>
355
266
356
267
Inject CSS styles into the page.
357
268
@@ -365,7 +276,7 @@ Accepts an array of inline code, absolute URLs, and local file paths (must have
365
276
})()
366
277
```
367
278
368
-
##### scrollToElement
279
+
##### scrollTo
369
280
370
281
type: `string` | `object`
371
282
@@ -381,7 +292,7 @@ After the screenshot has been taken, this option allows you to place the screens
381
292
382
293
You can configure the overlay specifying:
383
294
384
-
-**browser**: It sets the browser image overlay to use. Supported values: `safari-light`,` safari-dark`.
295
+
-**browser**: It sets the browser image overlay to use, being `safari-light` and ` safari-dark` supported values.
385
296
-**background**: It sets the background color to use. You can pass a hexadecimal/rgb/rgba or a CSS gradient.
Specify a list of events until consider navigation succeeded, using [page.waitForNavigation](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagewaitfornavigationoptions).
515
436
@@ -521,11 +442,18 @@ It will setup a custom user agent, using [page.setUserAgent](https://github.com/
521
442
522
443
It will setup a custom viewport, using [page.setViewport](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetviewportviewport) method.
523
444
524
-
##### args
445
+
##### cookies
525
446
526
-
type: `object`
447
+
type: `object[]` </br>
527
448
528
-
The settings to be passed to [page.goto](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagegotourl-options).
449
+
A collection of [cookie's object](https://github.com/GoogleChrome/puppeteer/blob/v1.16.0/docs/api.md#pagesetcookiecookies) to set in the requests send.
450
+
451
+
##### device
452
+
453
+
type: `string`</br>
454
+
default: `'macbook pro 13'`
455
+
456
+
It specifies the [device](#devices) descriptor to use in order to retrieve `userAgent` and `viewport`
529
457
530
458
### .page()
531
459
@@ -586,13 +514,14 @@ You don't need to think about the acquire/release step: It's done automagically
0 commit comments