Andrey Lushnikov
0adffcc2cb
docs: add table-of-contents to troubleshooting ( #4234 )
...
Drive-by: teach our table-of-contents generator to ignore comments
inside fenced blocks and to de-linkify titles.
2019-04-02 19:08:22 -07:00
Andrey Lushnikov
2c6df6ddd1
chore: bump version to v1.14.0-post ( #4224 )
2019-03-28 22:50:12 -07:00
Andrey Lushnikov
3fa91cace3
chore: mark version v1.14.0 ( #4222 )
2019-03-28 22:33:38 -07:00
Alex Sergeyev
26d6e91fd5
docs(troubleshooting.md): Update Alpine example ( #4203 )
...
* Refresh documentation for building on Alpine.
* Add ttf-freefont@edge dependency
Without ttf-freefont chrome can't render subscript (CO₂)
2019-03-25 16:33:36 -07:00
Andrey Lushnikov
0d0e620405
docs(api.md): update ElementHandle example ( #4169 )
...
Fix #4150
2019-03-19 12:53:47 -07:00
Fabio Picheli
28bab53bf6
docs(troubleshooting.md): Add missing depencies ( #4182 )
...
https://github.com/GoogleChrome/puppeteer/issues/3019#issuecomment-417227105
2019-03-19 10:42:44 -07:00
Vse Mozhet Byt
854b1c0912
feat(executioncontext): support bigints transferring ( #4016 )
...
Refs: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-UnserializableValue
2019-03-15 10:20:48 -07:00
Andrey Lushnikov
27cf8594c2
docs(api.md): add note regarding puppeteer.executablePath() ( #4092 )
...
References #4091
2019-03-14 11:32:44 -07:00
Andrey Lushnikov
808d1bb597
docs(api.md): add links to CDP guide and pptr.dev ( #4159 )
2019-03-13 13:17:10 -07:00
Alix Axel
26abcda668
docs(troubleshooting): updated Lambda resources ( #4140 )
...
- removed deprecated Kikobeats/aws-lambda-chrome
- added outdated info to adieuadieu/serverless-chrome (last updated 6 months ago)
2019-03-12 14:41:33 -07:00
Andrey Lushnikov
1623bef264
test: improve test coverage for Request.continue ( #4096 )
...
Drive-by: add clarification to docs/api.md regarding
chaning "URL".
References #4030
2019-03-05 14:57:15 -08:00
Andrey Lushnikov
7462bdafa1
chore: bump version to v1.13.0-post ( #4115 )
2019-03-04 23:45:18 -08:00
Andrey Lushnikov
77a969419e
chore: mark version v1.13.0 ( #4114 )
2019-03-04 18:39:45 -08:00
Andrey Lushnikov
e3b76b2beb
feat(firefox): support consoleMessage.location() ( #4002 )
2019-02-13 19:56:56 -08:00
Andrey Lushnikov
e1000009a5
docs(api.md): update versions ( #3916 )
2019-02-05 12:46:31 -08:00
Andrey Lushnikov
a760d79c86
chore: bump version to v1.12.2-post ( #3915 )
2019-02-05 12:00:15 -08:00
Andrey Lushnikov
b0afb17b68
chore: mark version v1.12.2 ( #3914 )
2019-02-05 11:38:04 -08:00
Andrey Lushnikov
b0e8084650
chore: bump version to v1.12.1-post ( #3886 )
2019-02-01 12:47:56 -08:00
Andrey Lushnikov
a1abd6c1fc
chore: mark version v1.12.1 ( #3885 )
...
References #3878 .
2019-02-01 12:30:21 -08:00
Andrey Lushnikov
718cdf123e
chore: bump version to v1.12.0-post ( #3876 )
2019-01-31 19:47:16 -08:00
Andrey Lushnikov
7f05a084f1
chore: mark version v1.12.0 ( #3875 )
2019-01-31 19:33:54 -08:00
Andrey Lushnikov
a064a6341b
feat(page): introduce page.setDefaultTimeout ( #3854 )
...
Method `page.setDefaultTimeout` overrides default 30 seconds timeout
for all `page.waitFor*` methods, including navigation and waiting
for selectors.
Fix #3319 .
2019-01-28 17:16:12 -08:00
Joel Einbinder
f2c968fdb8
chore(types): generate our own d.ts file from api.md ( #3744 )
...
Generate `//index.d.ts` file with precise typescript definitions for all of the
Puppeteer API.
2019-01-28 15:12:45 -08:00
Andrey Lushnikov
2061dd4718
fix(page): teach waitForSelector to return null
( #3846 )
...
`page.waitForSelector` should return `null` if waiting for `hidden:
true` and there's no matching node in DOM.
Before this patch, `page.waitForSelector` would return some JSHandle
pointing to boolean value.
2019-01-28 14:24:53 -05:00
Dan Dascalescu
7446550fdb
docs(api.md): fix typo ( #3848 )
2019-01-27 00:37:02 -05:00
Denny
7585e6db9e
docs(api.md): expand puppeteer-core explanation ( #3830 )
2019-01-22 23:25:14 -05:00
Andrey Lushnikov
d346cb57b4
chore: cleanup puppeteer.connect({browserURL}) ( #3766 )
...
This patch:
- renames `browserUrl` into `browserURL`
- cleans up some code
- adds tests for error handling
References #3537
2019-01-14 14:30:03 -08:00
Łukasz Fiszer
15af75f9a2
feat(launcher): add browserUrl option to puppeteer.connect ( #3558 )
...
The `browserURL` option allows to connect to a browser that exposed it's remote debugging protocol on a known port.
Fixes #3537
2019-01-14 13:23:34 -08:00
Andrey Lushnikov
89fc2adff5
fix(page): consoleMessage.location() should work with workers ( #3752 )
...
This patch:
- refactors consoleMessage.location() implementation to
make it work for workers
- re-writes tests to avoid 5 second delay
2019-01-10 18:05:28 -08:00
Tom P
0c867631b0
feat(page): introduce consoleMessage.location() ( #3365 )
...
This patch adds a new consoleMessage.location() method that returns console message origins.
Fixes #3029
2019-01-10 16:51:13 -08:00
Sergii Tkachenko
82bef70212
docs(troubleshooting.md): Update running on Alpine example ( #3708 )
...
Makes Running on Alpine up to date:
- Chrome is now available in LTS Node 10
- Chrome version is updated to the latest alpine `@edge`, 71
- Corresponding Puppeteer is updated to v1.9.0
- `harfbuzz` is now required by dynamic linking
2019-01-09 17:23:49 -08:00
Andrey Lushnikov
1e66d332b8
docs(api.md): better documentation for PUPPETEER_DOWNLOAD_HOST ( #3669 )
...
Fix #3635 .
2018-12-17 13:31:32 -08:00
Andrey Lushnikov
8aaca4eb1e
feat(page): introduce "Popup" event ( #3661 )
...
This patch adds a new "popup" event for page.
"Popup" event is fired whenever page opens another page with
given opener.
2018-12-12 17:09:42 -08:00
Andrey Lushnikov
c90392bdf5
feat: introduce page.browserContext() ( #3655 )
2018-12-12 15:08:31 -08:00
Shivam Kumar Jha
8613e871fc
docs(troubleshooting.md): Update troubleshooting.md ( #3606 )
...
The proposal adds a drop-down list in a similar fashion as Dependencies list since it feels a little weird to have list for a continuing detail as I assume that all the three options belong to the same level of information.
2018-12-05 13:43:36 -08:00
WillGibson
68afb3cdec
docs(troubleshooting): Update docs about copying file for setuid sandbox ( #3608 )
...
Very small change in light of operational experience while getting it running on Centos in Jenkins pipeline.
Without the `-p`, the permissions set in the `chmod` before this command are not carried over chrome cannot start.
2018-12-05 13:39:18 -08:00
Andrey Lushnikov
45c4477e9f
chore: bump version to v1.11.0-post ( #3613 )
2018-11-29 22:38:54 -08:00
Andrey Lushnikov
00b15994a4
chore: mark version v1.11.0 ( #3610 )
2018-11-29 22:11:44 -08:00
Joel Einbinder
a0cbaf39ab
chore(types): lint the api docs with typescript ( #3577 )
2018-11-21 14:49:08 -08:00
Alix Axel
a04100c235
docs(troubleshooting): added link to alixaxel/chrome-aws-lambda ( #3576 )
...
I've been maintaining and compiling the latest version of Chromium for AWS Lambda.
Would be great to have it included in the docs.
2018-11-20 16:03:07 -08:00
Andrey Lushnikov
927d0f443b
feat(page): support waitUntil option for page.setContent
( #3557 )
...
This patch teaches `page.setContent` to await resources in
the new document.
**NOTE**: This patch changes behavior: currently, `page.setContent`
awaits the `"domcontentloaded"` event; with this patch, we can now await
other lifecycle events, and switched default to the `"load"` event.
The change is justified since current behavior made `page.setContent`
unusable for its main designated usecases, pushing our client
to use [dataURL workaround](https://github.com/GoogleChrome/puppeteer/issues/728#issuecomment-334301491 ).
Fixes #728
2018-11-20 15:32:46 -08:00
Vse Mozhet Byt
86e09593bf
docs(api.md): mark optional arguments in signatures ( #3565 )
...
Some `[]` marks were missing.
2018-11-19 12:36:28 -08:00
Nazanin Delam
f6bfa3231a
docs(api.md): fixes #3517 ( #3561 )
...
Add required to height and width properties in setViewport function
2018-11-19 12:35:16 -08:00
Andrey Lushnikov
766a9516b0
docs(troubleshooting): update on sandboxing ( #3531 )
2018-11-13 15:31:13 -08:00
Darcy Parker
10a4c8c123
docs(troubleshooting): modern linux sandboxing
...
Add a note about enabling `kernel.unprivileged_userns_clone` to support modern sandboxing on linux.
2018-11-12 14:38:39 -08:00
Joel Einbinder
568734386d
fix(types): fix parameters where they disagree with the api ( #3525 )
2018-11-12 12:59:21 -08:00
Vse Mozhet Byt
59e7e8c244
docs(api.md): update returned value description ( #3514 )
2018-11-08 18:33:22 -08:00
Joel Einbinder
79ec7a3fe5
fix(types): fix return types where JSDoc and api.md disagree ( #3512 )
2018-11-07 22:48:43 -08:00
Andrey Lushnikov
60a8d4115d
chore: bump version to v1.10.0-post ( #3483 )
2018-11-02 11:08:44 -07:00
Andrey Lushnikov
e9d89a2e21
chore: mark version v1.10.0 ( #3482 )
2018-11-01 20:09:04 -07:00
Joel Einbinder
9ba3261571
feat(accessibility): snapshot the accessibility tree ( #3470 )
...
This adds `page.accessibility.snapshot()`. It serializes and returns the accessibility tree for the page. By default, uninteresting nodes are filtered out of the snapshot.
fixes #2033
2018-11-01 18:54:51 -07:00
Andrey Lushnikov
e0610079b6
docs(api.md): update compatibility table
2018-11-01 16:41:20 -07:00
Andrey Lushnikov
8e93eab784
docs(api.md): add example to override request headers ( #3475 )
...
References #3458 .
2018-11-01 15:44:04 -07:00
Andrea Giammarchi
9800b2c3c2
docs(api.md): Fix missing await
in extension example ( #3447 )
...
The extensions example did not `await puppeteer.launch(...)` throwing errors right after awaiting `browser.targets()`.
2018-10-26 18:38:00 -07:00
Sebastián Gurin
fae441cd42
docs(troubleshooting): add workarounds for code transpilation ( #3399 )
...
References #1665
2018-10-25 11:26:55 -07:00
Ola Flisbäck
cf8c62e835
docs(api.md): Fix ElementHandle example ( #3401 )
...
This patch fixes an ElementHandle example by
adding a missing parenthesis.
2018-10-16 17:24:46 -07:00
Mikhail Shustov
a04dedcaf8
docs(troubleshooting.md): run non-headless on CI ( #3353 )
...
Fixes #3303 .
2018-10-09 14:25:55 -07:00
Joel Einbinder
6ac66c3547
feat: browser.waitForTarget ( #3356 )
...
This adds `browser.waitForTarget` and `browserContext.waitForTarget`. It also fixes a flaky test that was incorrectly expecting targets to appear instantly.
2018-10-09 14:16:53 -07:00
Justin Lee
90d1fe8f6f
docs(api): fixed grammatical error (it's -> its) #3352
...
Fixed incorrect use of "it's".
2018-10-04 16:09:08 -07:00
Andrey Lushnikov
af4209ff98
chore: bump version to v1.9.0-post ( #3351 )
2018-10-04 14:53:00 -07:00
Andrey Lushnikov
f6c05e6efd
chore: mark version v1.9.0 ( #3350 )
2018-10-04 14:37:40 -07:00
Raymond Tan
c9657f8819
docs(api.md): minor grammar and consistency fixes ( #3320 )
2018-10-02 13:38:41 -07:00
Andrey Lushnikov
4e48dfc7a1
feat(launcher): add experimental "transport" option to pptr.connect ( #3265 )
...
This patch:
- adds experimental "transport" option to pptr.connect
- uses "transport" option to make sure Puppeteer-Web works with
Target.exposeDevToolsProtocol
Drive-by: add `browser.target()` to access browser target.
2018-09-20 11:55:23 -07:00
Andrey Lushnikov
5acf953104
feat(frame): introduce Frame.goto and Frame.waitForNavigation ( #3276 )
...
This patch introduces API to manage frame navigations.
As a drive-by, the `response.frame()` method is added as a shortcut
for `response.request().frame()`.
Fixes #2918 .
2018-09-20 11:31:19 -07:00
xcatliu
ad49f792a4
docs(api.md): Fix description of SecurityDetails class ( #3277 )
2018-09-20 07:48:30 -07:00
xcatliu
27477a1d79
docs(api.md): Fix typo ( #3273 )
2018-09-19 05:58:04 -07:00
Andrey Lushnikov
f5d388af7d
docs(api.md): add example for Mouse class ( #3244 )
...
Fixes #3221 .
2018-09-14 19:48:47 +01:00
Andrey Lushnikov
f49687f747
docs(api.md): add frame example ( #3237 )
...
Add an example on how to work with frame's API.
Fixes #3232 .
2018-09-13 19:25:15 +01:00
Divyansh Tripathi
c967aebc84
docs(api.md): add an include statement for puppeteer-core ( #3213 )
...
Fix #3204
2018-09-07 10:46:59 +01:00
Matt Zeunert
c5511ecb81
docs(api.md): Clarify how to call page.setCookie ( #3215 )
...
Fixes #3109
2018-09-07 10:46:12 +01:00
Andrey Lushnikov
78e9d5c422
chore: bump version to v1.8.0-post ( #3212 )
2018-09-06 22:03:42 +01:00
Andrey Lushnikov
aeb6a9991e
chore: mark version v1.8.0 ( #3211 )
2018-09-06 21:49:44 +01:00
Andrey Lushnikov
28d92116b7
feat(puppeteer): support convenience env variables ( #3190 )
...
We had (and still have) a ton of pull requests to support
PUPPETEER_EXECUTABLE_PATH and PUPPETEER_CHROMIUM_REVISION in puppeteer launcher.
We were hesitant before since env variables are not scoped
and thus don't make a good interface for a library. Now, since we
determined `puppeteer-core` as a library and `puppeteer` as our end-user
product, it's safe to satisfy our user needs.
This patch:
- teaches PUPPETEER_EXECUTABLE_PATH and PUPPETEER_CHROMIUM_REVISION
env variables to control how Puppeteer launches browser
- makes sure these variables play no role in `puppeteer-core` package.
2018-09-05 22:59:14 +01:00
Andrey Lushnikov
7f9e276733
feat(network): introduce Response.statusText() ( #3193 )
...
Fixes #317 .
2018-09-05 21:03:24 +01:00
Jonathan
3364659cca
docs(api.md): Added cutoff values for scale option in page.pdf function ( #3201 )
...
Added the cutoff values for the scale option in the page.pdf function call. Numbers based on chrome's warning message.
2018-09-05 18:12:21 +01:00
Vse Mozhet Byt
e07567f268
docs(api.md): fix a typo ( #3196 )
2018-09-04 22:38:55 +01:00
Andrey Lushnikov
1ba2b8540d
feat(network): introduce Response.remoteAddress() ( #3192 )
...
Closes #2171 .
2018-09-04 20:39:59 +01:00
Andrey Lushnikov
2de5a42d1f
docs(api.md): expand on puppeteer-core vs puppeteer ( #3189 )
2018-09-04 17:32:57 +01:00
Andrey Lushnikov
93f267b4bb
docs(api.md): re-factor api.md heading ( #3185 )
...
- drop the "all previous releases" part, only have last 5 releases per chromium versions
- link to Chinese translation of the documentation
2018-09-04 16:54:02 +01:00
avimar
cbce839986
docs(api.md): small typo ( #3188 )
2018-09-04 16:34:44 +01:00
Ali Ahmad
464f3b4ca2
feat(page): Add 'referer' as a parameter to Page.goto() ( #3128 )
...
If referer is passed to the options object its value will be used as the referer instead of the value set by `Page.setExtraHTTPHeaders()`.
This is the correct way to set referer header: otherwise, the `referer` header will override all the document subrequests.
Fixes #3090 .
2018-09-03 20:06:58 +01:00
Andrey Lushnikov
17029281a9
feat(page): Introduce page.setGeolocation method ( #3160 )
...
Fixes #1077
2018-08-31 18:04:12 +01:00
Andrew Leedham
10009973fb
docs(api.md): page.hover typo ( #3165 )
2018-08-31 11:59:49 +01:00
Andrey Lushnikov
50d6c2d3c6
feat(browsercontext): implement BrowserContext.overridePermissions ( #3159 )
...
Introduce an API to manage permissions per browser context:
- BrowserContext.overridePermissions(origin, permissions)
- BrowserContext.clearPermissionOverrides()
Fixes #846 .
2018-08-30 23:36:09 +01:00
a-sync
395c50624c
docs(troubleshooting): add libatk-bridge2.0-0 to ubuntu dependencies ( #3096 )
2018-08-16 14:46:59 -07:00
Andrey Lushnikov
3ae85e4649
docs: mention puppeteer-core ( #3061 )
2018-08-09 19:31:14 -07:00
Andrey Lushnikov
af361c8ed6
chore: bump version to v1.7.0-post ( #3060 )
2018-08-09 19:24:25 -07:00
Andrey Lushnikov
66caee4c60
chore: mark version v1.7.0 ( #3059 )
2018-08-09 18:53:24 -07:00
Andrey Lushnikov
be7626fa5e
fix: revert ExecutionContext reporting. ( #3058 )
...
It turned out that almost any usecase requires helper methods to access
DOM inside the ExecutionContext.
Instead of exposing execution contexts as-is, we should introduce
IsolatedWorld as a first-class citizen that will hold execution contexts
inside.
2018-08-09 18:14:21 -07:00
Joel Einbinder
28ccf5d795
docs(api.md): some grammar/wording ( #3057 )
2018-08-09 17:49:06 -07:00
Andrey Lushnikov
204c7ec8c4
feat: introduce puppeteer/Errors ( #3056 )
...
This patch adds a new require, `puppeteer/Errors`, that
holds all the Puppeteer-specific error classes.
Currently, the only custom error class we use is `TimeoutError`. We'll
expand in future with `CrashError` and some others.
Fixes #1694 .
2018-08-09 16:51:12 -07:00
Andrey Lushnikov
231a2be971
feat: expose frame's execution contexts ( #3048 )
...
This patch exposes frame's execution contexts, making it possible
to debug extension's content scripts.
This is a resurrected #2812 .
2018-08-09 14:57:08 -07:00
Vse Mozhet Byt
b84404c94e
docs(api.md): fix a typo ( #3055 )
2018-08-09 14:45:15 -07:00
Andrey Lushnikov
40466cb3a4
feat(launcher): ignoreDefaultArgs to accept array of options ( #3049 )
...
If `ignoreDefaultArgs` is given an array of options, than
these options will be excluded from the default command-line
flags.
2018-08-08 19:10:10 -07:00
Andrey Lushnikov
d822401449
docs(api.md): clarify coordinate system in mouse ( #3041 )
2018-08-07 14:24:38 -07:00
Andrey Lushnikov
608f5b79fe
docs(api.md): clarification note on request interception ( #3042 )
...
Fixes #3040 .
2018-08-07 14:24:27 -07:00
Steren
735e17e223
docs(troubleshooting): Add instructions to run on App Engine and Cloud Functions ( #3021 )
2018-08-07 13:22:49 -07:00
Joel Einbinder
6825088644
feat(launcher): allow options to be passed into puppeteer.defaultArgs ( #2950 )
2018-08-07 13:22:04 -07:00
Joel Einbinder
25632133e2
feat: add option to specify the default viewport ( #3005 )
...
Fixes #1183 .
2018-08-01 16:23:03 -07:00
Paul Shibanov
fd5d95bd99
docs(troubleshooting): update Chromium package supported on Alpine ( #2997 )
2018-07-31 15:07:59 -07:00