jrandolf
b4176029d9
chore: update dependencies ( #8771 )
...
* chore: update dependencies
2022-08-11 07:55:02 +02:00
jrandolf
d6a88a9768
chore: refactor FrameManager and fix docs ( #8770 )
2022-08-10 23:34:29 +02:00
Alex Rudenko
b5064b7b8b
fix: specify Puppeteer version for Chromium 105.0.5173.0 ( #8766 )
2022-08-10 11:51:54 +02:00
Alex Rudenko
6934b94f23
docs: introduce the Guides section + restore req interception docs ( #8758 )
...
Closes #8744
2022-08-09 12:01:23 +00:00
Alex Rudenko
af92fc8f32
docs: fix typos in the docker documentation ( #8751 )
2022-08-08 11:04:50 +00:00
Alex Rudenko
eb6470931b
docs: add documentation about Docker ( #8741 )
...
Closes #3072
2022-08-05 11:00:09 +02:00
jrandolf
5cf9b4de8d
feat: use an xpath
query handler ( #8730 )
2022-08-04 15:45:21 +02:00
Alex Rudenko
2abd772c9c
feat: detect Firefox in connect() automatically ( #8718 )
...
This PR implements automatic detection of the Firefox product when the `.connect()` method is used. This partially undoes the breaking change in https://github.com/puppeteer/puppeteer/pull/8520 but it's also a breaking change on its own since we don't accept an explicit product name anymore (it does not look like it was used anyway).
2022-08-02 13:18:51 +00:00
Alex Rudenko
f52b37a3aa
docs: fix a typo in waitForSelector ( #8701 )
2022-08-02 13:18:48 +00:00
chakzefir
0180a882e2
docs: add gitlab-ci section to troubleshooting ( #8664 )
...
Adding explanatory section with detailed manual on how to launch puppeteer on GitlabCI
2022-07-20 10:15:14 +02:00
Alex Rudenko
af08c5c903
feat: expose the page getter on Frame ( #8657 )
...
* feat: expose the page getter on Frame
Closes #8654
* test: add a test
2022-07-11 21:06:35 +02:00
Alex Rudenko
d0c4291995
fix: expose a RemoteObject getter ( #8642 )
...
Closes #8639
2022-07-07 13:04:28 +00:00
jrandolf
f82c03682a
chore: link new puppeteer versions ( #8637 )
2022-07-06 17:49:47 +02:00
jrandolf
5ff205dc8b
fix: extends ElementHandle
to Node
s ( #8552 )
...
* fix: extends `ElementHandle` to `Node`s (#8552 )
2022-07-06 09:05:37 +02:00
jrandolf
b5a345b06b
chore: format docs ( #8629 )
2022-07-05 15:41:43 +02:00
jrandolf
45eb2c607f
chore: remove docusaurus metadata from README.md ( #8624 )
2022-07-05 14:42:31 +02:00
jrandolf
32c9f3e6fb
chore: update contributing.md ( #8616 )
2022-07-01 16:29:21 +02:00
jrandolf
066f440ba7
feat: add documentation ( #8593 )
2022-07-01 11:52:39 +00:00
release-please[bot]
51ae338acd
chore(main): release 15.2.0 ( #8585 )
...
* chore(main): release 15.2.0
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-29 14:25:40 +02:00
Levi Pesin
79e11985ba
feat: add fromSurface option to page.screenshot ( #8496 )
2022-06-27 12:37:37 +00:00
jrandolf
f2e9cbb849
chore: unfreeze version on docs ( #8578 )
2022-06-25 14:21:33 +02:00
release-please[bot]
5849c9beb4
chore(main): release 15.1.1 ( #8577 )
...
* chore(main): release 15.1.1
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-25 13:33:44 +02:00
jrandolf
9a8bac7138
chore: unfreeze version on docs ( #8575 )
...
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-24 18:49:31 +02:00
release-please[bot]
5fda494543
chore(main): release 15.1.0 ( #8573 )
...
* chore(main): release 15.1.0
* chore: freeze version on docs
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-24 18:42:31 +02:00
jrandolf
06543d3db7
chore: unfreeze version on docs ( #8572 )
...
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-24 15:38:11 +02:00
release-please[bot]
a23cac77f5
chore(main): release 15.0.2 ( #8571 )
...
* chore(main): release 15.0.2
* chore: freeze version on docs
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-24 15:30:28 +02:00
jrandolf
4aba94424e
chore: unfreeze version on docs ( #8568 )
...
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-24 10:40:53 +02:00
release-please[bot]
d15f2239b9
chore(main): release 15.0.1 ( #8565 )
...
* chore(main): release 15.0.1
* chore: freeze version on docs
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-24 09:42:02 +02:00
jrandolf
657e0b53a6
chore: unfreeze version on docs ( #8557 )
...
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-23 13:48:47 +02:00
release-please[bot]
9705797a02
chore(main): release 15.0.0 ( #8555 )
...
* chore(main): release 15.0.0
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-23 13:38:28 +02:00
jrandolf
84712cbc28
chore: use Google's TS style guide's format config ( #8542 )
2022-06-22 15:25:44 +02:00
Randolf J
3744c2f584
chore: unfreeze version on docs
2022-06-20 09:31:06 +02:00
release-please[bot]
3d1ec573fb
chore(main): release 14.4.1 ( #8523 )
2022-06-17 15:29:28 +02:00
Randolf J
6bc45c4ae8
chore: unfreeze version on docs
2022-06-13 23:27:40 +02:00
release-please[bot]
e0c537408e
chore(main): release 14.4.0 ( #8512 )
...
* chore(main): release 14.4.0
* chore: freeze version on docs
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-13 23:05:56 +02:00
Randolf J
353358a996
chore: unfreeze version on docs
2022-06-07 16:34:36 +02:00
release-please[bot]
4b05a8454e
chore(main): release 14.3.0 ( #8471 )
...
* chore(main): release 14.3.0
* chore: freeze version on docs
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-07 16:21:47 +02:00
Alex Rudenko
e14256010d
feat: use absolute URL for EVALUATION_SCRIPT_URL ( #8481 )
...
Closes #8424
2022-06-07 15:36:51 +02:00
jrandolf
66008c2189
chore: unfreeze version on docs ( #8465 )
...
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-02 16:42:02 +02:00
release-please[bot]
d5cd41686c
chore(main): release 14.2.1 ( #8462 )
...
* chore(main): release 14.2.1
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: jrandolf <101637635+jrandolf@users.noreply.github.com>
2022-06-02 15:38:51 +02:00
Randolf J
cf49b18beb
chore: build main docs
2022-06-01 22:18:41 +02:00
release-please[bot]
b3b62b35f3
chore(main): release 14.2.0 ( #8457 )
...
* chore(main): release 14.2.0
* chore: freeze version on docs
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-06-01 22:11:58 +02:00
Alex Rudenko
d4321e53c9
chore: bump version to v14.1.1-post ( #8376 )
2022-05-19 17:31:18 +02:00
Alex Rudenko
0ca60a7ff0
chore(release): mark v14.1.1 ( #8374 )
2022-05-19 14:54:39 +00:00
Alex Rudenko
25216df42b
chore: bump version to v14.1.0-post ( #8341 )
2022-05-13 08:19:13 +00:00
Alex Rudenko
1441fb84d8
chore(release): mark v14.1.0 ( #8339 )
2022-05-13 07:31:25 +00:00
Alex Rudenko
7eaadafe19
feat: add waitForXPath to ElementHandle ( #8329 )
2022-05-10 12:45:20 +02:00
Dave Vandyke
1e82d98027
docs: improve the Working with Chrome Extensions section ( #8321 )
...
- Added a note to mention the experimental Chrome headless mode can
also be used.
- Improved the example code to wait for the background page to be
ready. The previous example sometimes didn't work, since the
background page would take a split-second to load.
- Added a note to mention how to find the background ServiceWorker for
Chrome MV3 extensions.
2022-05-10 06:21:57 +00:00
Alex Rudenko
edb4a33f22
chore: bump version to v14.0.0-post ( #8327 )
2022-05-09 14:08:48 +00:00
Alex Rudenko
06f7390eab
chore(release): mark v14.0.0 ( #8326 )
2022-05-09 13:13:07 +00:00
Valentin Semirulnik
baa017db92
feat: add support for Apple Silicon chromium builds ( #7546 )
...
Google has published Chromium builds for Apple Silicon so we can fetch it now
Related to #6622
2022-05-05 07:33:19 +00:00
Alex Rudenko
2804ae8cdb
fix!: strict mode fixes for HTTPRequest/Response classes ( #8297 )
...
Solves type issues in HTTPRequest/Response with some slight changes in the behaviour and API.
Issues #6769
2022-05-05 06:48:03 +00:00
jrandolf
274bd6b3b9
chore: drop Node 12 support ( #8299 )
...
This patches removes support for Node 12.
BREAKING CHANGE: Node 12 is no longer supported.
2022-05-03 08:59:40 +02:00
Andy Earnshaw
94cb08c859
docs: update troubleshooting.md with latest alpine details ( #8271 )
2022-04-29 06:25:20 +00:00
jrandolf
15583c3eac
chore: bump version to v13.7.0-post ( #8293 )
...
* chore: bump version to v13.7.0-post
2022-04-28 12:33:29 +00:00
jrandolf
ae97ccab68
chore(release): mark v13.7.0 ( #8292 )
2022-04-28 10:59:24 +00:00
jrandolf
7a51bff47f
feat: add back
and forward
mouse buttons ( #8284 )
2022-04-27 21:00:07 +00:00
Alex Rudenko
1308d9aa6a
feat: support chrome headless mode ( #8260 )
...
* feat: support chrome headless mode
Co-authored-by: Ergün Erdoğmuş <erdogmusergun@gmail.com>
2022-04-25 13:11:23 +02:00
wuchong
952a2ae0bc
fix: doc typo ( #8263 )
2022-04-22 06:41:13 +00:00
Ergün Erdoğmuş
9a9ec8f65b
chore: bump version to v13.6.0-post ( #8251 )
2022-04-20 08:40:35 +00:00
Ergün Erdoğmuş
29a309915d
chore(release): mark v13.6.0 ( #8249 )
...
Co-authored-by: Ergün Erdoğmuş <ergunsh@chromium.org>
2022-04-20 10:07:34 +02:00
Andreas Opferkuch
0c8174b987
docs: improve custom query handler docs ( #8235 )
2022-04-19 12:48:22 +00:00
Alex Rudenko
ed4afe81a5
docs: typos and minor documentation issues ( #8211 )
2022-04-08 11:58:55 +02:00
Junyan
c1dcd857e3
feat: respond multiple headers with same key ( #8183 )
2022-04-05 09:06:35 +00:00
Alex Rudenko
7cb36027e2
chore: bump version to v13.5.2-post ( #8179 )
2022-03-31 09:33:03 +00:00
Alex Rudenko
0d9699be37
chore(release): mark v13.5.2 ( #8175 )
2022-03-31 10:13:58 +02:00
Alex Rudenko
7dede4f051
chore: bump version to v13.5.1-post ( #8120 )
2022-03-09 16:01:24 +01:00
Alex Rudenko
e28462c3db
chore(release): mark v13.5.1 ( #8118 )
2022-03-09 13:18:06 +00:00
Alex Rudenko
ffbac6e281
chore: bump version to v13.5.0-post ( #8111 )
2022-03-07 15:15:32 +01:00
Alex Rudenko
7b38b458c9
chore(release): mark v13.5.0 ( #8110 )
2022-03-07 13:58:56 +01:00
Alex Rudenko
7480fc52bd
chore: bump version to v13.4.1-post ( #8082 )
2022-03-01 08:19:22 +00:00
Alex Rudenko
69d5ef59ee
chore(release): mark v13.4.1 ( #8078 )
2022-03-01 07:21:07 +00:00
Johan Bay
53977b80c6
docs(api.md): fix missing space in reference ( #8075 )
2022-02-28 12:11:41 +01:00
Johan Bay
bc9ec323cc
docs(api.md): add documentation on custom handlers ( #8074 )
2022-02-28 10:43:59 +01:00
kirintw
213deb1921
docs(troubleshooting.md): fix alpine install adduser command ( #8068 )
2022-02-25 11:13:37 +00:00
Alex Rudenko
7e1794cdb2
chore: bump version to v13.4.0-post ( #8053 )
2022-02-22 13:01:22 +00:00
Alex Rudenko
7f47c8133a
chore(release): mark v13.4.0 ( #8052 )
2022-02-22 13:34:25 +01:00
Tmk
dbf0639822
feat: add support for async waitForTarget ( #7885 )
...
* feat: add support for async waitForTarget
* fix: add timeout
* fix: potential async bugs
2022-02-18 12:05:29 +01:00
弘树@阿里
e5aa4f2965
docs: update firefox flags link ( #7779 )
...
The original link <https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options > returns 'Page not found', I searched and guess the new available link should be <https://wiki.mozilla.org/Firefox/CommandLineOptions >
2022-02-15 13:29:11 +01:00
omjadas
30b3d49b0d
feat(HTTPResponse): expose timing information ( #8025 )
2022-02-15 11:16:49 +01:00
Alex Rudenko
d5deb92c33
chore: bump version to v13.3.2-post ( #8017 )
2022-02-14 13:21:40 +01:00
Alex Rudenko
1c2566bae5
chore(release): mark v13.3.2 ( #8015 )
2022-02-14 11:14:18 +00:00
Nick Schonning
b2bf70fc3b
chore: update prettier globs and format files ( #7856 )
...
* chore: update prettier globs and format files
* fix: remove reference to Markdownlint
2022-02-11 20:29:43 +01:00
Yang Yang
4ce72abcbd
docs: heading ID references in docs/api.md ( #7974 )
...
- `Worker` -> `WebWorker`, `#class-worker` -> `#class-webworker`
- `#pagesetuseragentuseragent-useragentdata` -> `#pagesetuseragentuseragent-useragentmetadata`
- `####WaitTimeoutOptions` -> `#waittimeoutoptions`
- `#cooperative-intercept-mode-and-legacy-intercept-mode` -> `#cooperative-intercept-mode`
Co-authored-by: jrandolf <86539915+jrandolf@users.noreply.github.com>
2022-02-11 13:43:52 +00:00
jrandolf
55c38a25c8
chore: bump version to v13.3.1-post ( #7998 )
...
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-10 15:26:20 +00:00
jrandolf
90505a77be
chore(release): mark v13.3.1 ( #7997 )
...
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-10 14:59:28 +00:00
jrandolf
9b00b7074d
chore: bump version to v13.3.0-post ( #7983 )
...
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-09 18:16:16 +00:00
jrandolf
6879f9cfe1
chore(release): mark v13.3.0 ( #7979 )
...
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-09 17:01:45 +00:00
Alex Rudenko
02d651d209
chore: bump version to v13.2.0-post ( #7971 )
2022-02-07 15:19:58 +00:00
Alex Rudenko
b531f498e9
chore(release): mark v13.2.0 ( #7970 )
2022-02-07 15:35:33 +01:00
Alex Rudenko
41ab4e9127
fix: typos in documentation ( #7968 )
2022-02-07 14:03:54 +01:00
Alex Rudenko
161b283ea4
chore: bump version to v13.1.3-post ( #7947 )
2022-01-31 13:19:56 +01:00
Alex Rudenko
7b76883802
chore(release): mark v13.1.3 ( #7946 )
2022-01-31 10:15:42 +01:00
Alex Rudenko
be3fce5f9d
chore: bump version to v13.1.2-post ( #7926 )
2022-01-25 08:24:23 +00:00
Alex Rudenko
0a9eb3c9a5
chore(release): mark v13.1.2 ( #7925 )
2022-01-25 07:55:07 +00:00
Alex Rudenko
08c0e8b75d
chore: bump version to v13.1.1-post ( #7913 )
2022-01-18 09:18:24 +00:00
Alex Rudenko
f108560be8
chore(release): mark v13.1.1 ( #7912 )
2022-01-18 08:55:34 +00:00
Alex Rudenko
c09522a5f2
chore: bump version to v13.1.0-post ( #7909 )
2022-01-17 15:31:33 +00:00
Alex Rudenko
80d6b84ded
chore(release): mark v13.1.0 ( #7908 )
2022-01-17 15:40:56 +01:00
Alex Rudenko
59578d9cd5
chore: bump version to v13.0.1-post ( #7866 )
2021-12-22 09:06:22 +00:00
Alex Rudenko
71cef32f6d
chore(release): mark v13.0.1 ( #7865 )
2021-12-22 09:06:12 +01:00
Kiko Beats
3e3a90be53
docs: fix typo ( #7839 )
2021-12-13 07:56:26 +01:00
Alex Rudenko
acdc67bd02
chore: bump version to v13.0.0-post ( #7833 )
2021-12-10 09:41:27 +00:00
Alex Rudenko
d0cb9e2573
chore(release): mark v13.0.0 ( #7832 )
2021-12-10 09:02:39 +00:00
Ben Allfree
824242246d
fix!: typo in 'already-handled' constant of the request interception API ( #7813 )
...
Issues: #7745 , #7747 , #7780
Co-authored-by: Rodrigo Fernández <fdez.romero@gmail.com>
2021-12-09 14:57:40 +00:00
Alex Rudenko
c03429444d
feat: implement Element.waitForSelector ( #7825 )
...
Co-authored-by: Johan Bay <jobay@google.com>
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-12-09 11:51:14 +00:00
Ben Allfree
dc23b7535c
feat: expose HTTPRequest intercept resolution state and clarify docs ( #7796 )
...
Co-authored-by: Rodrigo Fernández <fdez.romero@gmail.com>
2021-12-07 08:48:42 +01:00
Alex Rudenko
09426e5931
chore: bump version to v12.0.1-post ( #7812 )
2021-11-29 20:28:30 +00:00
Alex Rudenko
913ff123ec
chore(release): mark v12.0.1 ( #7810 )
2021-11-29 20:06:56 +00:00
Alex Rudenko
921c3bcfcf
chore: bump version to v12.0.0-post ( #7804 )
2021-11-29 14:24:04 +01:00
Alex Rudenko
641588a783
chore(release): mark v12.0.0 ( #7800 )
2021-11-26 08:58:29 +00:00
Jan Scheffler
ad7f1de44f
chore: bump version to v11.0.0-post ( #7741 )
2021-11-03 09:49:17 +00:00
Jan Scheffler
e2e98376b9
chore(release): mark v11.0.0 ( #7737 )
2021-11-02 14:36:33 +00:00
Jan Scheffler
4d9dc8c0e6
feat(oop iframes)!: integrate OOP iframes with the frame manager ( #7556 )
...
This pull request to adds better support for OOP iframes (see #2548 )
The current problem with OOP iframes is that they are moved to a different target. Because of this, the previous versions of Puppeteer pretty much ignored them.
This change extends the FrameManager to already take OOP iframes into account and hides the fact that those frames are actually in different targets.
Further work needs to be done to also make the NetworkManager aware of these and to make sure that settings like emulations etc. are also properly passed down to the new targets.
2021-10-28 11:25:49 +02:00
Kiko Beats
105bb22566
docs: fix typo ( #7708 )
2021-10-19 10:16:24 +02:00
ilya-sharonov
edb01972b9
fix: updated troubleshooting.md to meet latest dependencies changes ( #7656 )
2021-10-08 19:09:04 +00:00
Josh Grime
44c9ec67c5
fix(page): fallback to default in exposeFunction when using imported module ( #6365 )
2021-09-29 18:32:49 +02:00
Jan Scheffler
a271145b06
feat: add initiator to HTTPRequest ( #7614 )
...
Co-Authored-By: atersolis <atersolis@atersolis.net>
2021-09-29 15:14:21 +00:00
Tan Li Hau
26145e9a24
feat: add custom debugging port option ( #4993 )
2021-09-29 16:05:18 +02:00
Kiko Beats
b1f6e8692b
feat: allow to customize tmpdir ( #7243 )
2021-09-23 09:26:00 +02:00
Jan Scheffler
df36a618f7
chore: bump version to v10.4.0-post ( #7588 )
2021-09-22 07:22:32 +02:00
Jan Scheffler
5631d3aebc
chore(release): mark v10.4.0 ( #7586 )
2021-09-21 17:29:27 +02:00
Jonathan Church
43a9268325
feat: add webp to screenshot options ( #7565 )
2021-09-21 14:26:20 +00:00
Alex Rudenko
8451951483
feat(page): mark page.client() as internal ( #7585 )
...
This PR marks the .client() method as internal since
we don't encourage our users to use it.
2021-09-21 13:20:02 +00:00
Alex Rudenko
99ca842124
feat(page): expose page.client() ( #7582 )
...
Puppeteer already allows creating a new CDP session
via target.createCDPSession but there is no way
to get access to any existing session to send
some additional commands.
2021-09-21 07:39:47 +00:00
Alex Rudenko
2b5c0019dc
feat: add ability to specify offsets for JSHandle.click ( #7573 )
...
Until now, the click would be always sent to the middle
point of the target element. With this change, one can define
offsets relative to the border box of the elements and click
different areas of an element.
2021-09-20 09:01:32 +00:00
Joone Hur
8e45a1c882
feat: add proxy and bypass list parameters to createIncognitoBrowserContext ( #7516 )
...
Example:
(async () => {
const browser = await puppeteer.launch();
const context = await browser.createIncognitoBrowserContext('myproxy.com:3128');
const page = await context.newPage()
await page.authenticate({username: 'foo', password: 'bar' });
await page.goto('https://google.com ');
await browser.close();
})();
Issue: #678
2021-09-18 11:56:05 +02:00
Max White
eda5171279
feat: add durableStorage to allowed permissions ( #5295 )
2021-09-16 10:35:36 +00:00
Ron0115
54c4318016
feat: add threshold to Page.isIntersectingViewport ( #6497 )
2021-09-15 22:56:50 +02:00
Ben Elliott
9399c9786f
fix(install): respect environment proxy config when downloading Firef… ( #6577 )
...
Issues: #6573
2021-09-15 19:41:03 +00:00
Noam Lustiger
300be5d167
feat: add id option to addScriptTag ( #5477 )
2021-09-14 23:02:05 +02:00
Li Wenyan
f90af6639d
feat: support timeout for page.pdf() call ( #7508 )
2021-09-14 16:11:14 +00:00
Mathias Bynens
686030fe0d
chore: remove references to upstream master
branches ( #7412 )
...
Chromium had its branch renamed to `main`, and for other projects we can just point to the `HEAD`.
2021-09-14 15:02:39 +00:00
Andy Chosak
32cb9e93d6
docs: bump recommended version for Alpine Docker ( #7563 )
...
The current documentation for running with an Alpine-based Docker image
recommends using Chromium 89 / Puppeteer 6.0.0.
Chromium 92 is now supported by Puppeteer 10.0.0; this commit bumps the
recommended versions.
2021-09-14 13:07:12 +00:00
Net
ae24bcaf6d
chore(docs): add instructions for headless GPU acceleration ( #6924 )
2021-09-13 09:47:18 +00:00
Tom Jenkinson
3c6029c702
feat(api): implement Page.waitForNetworkIdle()
( #5140 )
...
which will wait for there to be no network requests in progress during the `idleTime` before resolving.
2021-09-11 22:28:12 +02:00
Vitalii Tverdokhlib
907290b2fd
chore(docs): update alpine version ( #5099 )
2021-09-11 10:07:29 +00:00
Conrad Magnus Kirschner
0075a714fd
chore: update Dockerfile in troubleshooting.md ( #7015 )
...
Update to fix no package.json failure on some systems
2021-09-11 08:44:53 +00:00
pyoor
2aec35553b
fix: update firefox prefs documentation link ( #7539 )
2021-09-10 18:59:43 +00:00
Nicholas C. Zakas
10e847404e
docs: add Google Cloud Run to troubleshooting guide ( #7541 )
...
Issue: #7519
2021-09-03 10:47:34 +02:00
Paweł Gościcki
78941e562c
docs(api): correct createPDFStream
example ( #7538 )
...
Prior to this patch, the example results in `browser.close()` being executed before the file is generated/written to disk. One needs to listen for the `end` event on the `ReadableStream` before closing the browser, otherwise an exception is raised:
UnhandledPromiseRejectionWarning: Error: Protocol error (IO.read): Target closed
2021-09-02 09:26:55 +02:00
Zoltan Boros
930bff5e52
docs(api): clarify “file chooser” meaning ( #7534 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-09-01 09:51:09 +02:00
Maksim Sadym
939ac7f94b
chore: bump version to v10.2.0-post ( #7468 )
2021-08-04 17:30:25 +02:00
Maksim Sadym
c510df8d8e
chore(release): mark v10.2.0 ( #7467 )
2021-08-04 14:45:31 +02:00
Jan Scheffler
18ed92bd08
chore: update documentation ( #7446 )
...
Reference `page.setOfflineMode` and `page.emulateNetworkConditions` from each other.
2021-07-30 08:41:42 +00:00
Andres Rondon
5eb20e29a2
fix(browser-runner): reject promise on error ( #7338 )
...
This patch adds a reject callback to the _processClosing promise and executes it if it catches an error on removeFolderAsync(...).
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-07-30 09:32:53 +02:00
Mathias Bynens
dd470c7a22
feat(api): make page.isDragInterceptionEnabled
a method ( #7419 )
...
Having it be a getter is surprising and inconsistent, since the other `page.is*` APIs are just methods.
Issue: #7150
2021-07-13 11:37:39 +02:00
Yusuke Iwaki
d70f60e061
feat: add channel parameter for puppeteer.launch ( #7389 )
...
This change adds a new `channel` parameter to `puppeteer.launch`. When specified, Puppeteer will search for the locally installed release channel of Google Chrome and use it to launch. Available values are `chrome`, `chrome-beta`, `chrome-canary`, `chrome-dev`. This parameter is mutually exclusive with `executablePath`.
2021-07-09 12:43:42 +00:00
Ben Allfree
b5e6474374
feat: add cooperative request intercepts ( #6735 )
...
With this change,`request.respond`, `request.abort`, and `request.continue` can accept an optional `priority` to activate Cooperative Intercept Mode. In Cooperative Mode, all intercept handlers are guaranteed to run and all async handlers are awaited. The interception is resolved to the highest-priority resolution. See _Cooperative Intercept Mode and Legacy Intercept Mode_ in `docs/api.md` for details.
2021-07-02 17:58:32 +00:00
Maksim Sadym
859135adb6
chore: use proper cssLayoutMetrics
( #7390 )
2021-07-01 13:23:38 +02:00
Rowan Merewood
7200b1a6fb
feat: add support for useragentdata ( #7378 )
...
Adds userAgentData to setUserAgent that supports specifying user agent
data for the new navigator.userAgentData and Client Hints headers.
2021-06-29 18:29:55 +02:00
Jan Scheffler
558b35567c
chore: bump version to v10.1.0-post ( #7386 )
2021-06-29 07:44:38 +00:00
Jan Scheffler
6b13a17ed9
chore(release): mark v10.1.0 ( #7331 )
2021-06-29 09:26:24 +02:00
Brian Misiak
e3699e248b
feat: add a streaming version for page.pdf
...
Co-authored-by: Jan Scheffler <janscheffler@chromium.org>
2021-06-23 14:51:38 +02:00
Jan Scheffler
4ce4110628
feat: add page.emulateCPUThrottling ( #7343 )
2021-06-22 11:43:11 +00:00
Dan Park
a91b8aca37
feat: add drag-and-drop support ( #7150 )
...
This commit adds drag-and-drop support, leveraging new additions to the CDP Input domain (Input.setInterceptDrags, Input.dispatchDragEvent, and Input.dragIntercepted).
2021-06-07 13:50:34 +02:00
Robin Richtsfeld
af83207176
docs(requestinterception): remove outdated NOTE ( #7304 )
2021-06-01 11:29:38 +02:00
Jan Scheffler
f2ab11c640
chore: bump version to v10.0.0-post ( #7302 )
2021-05-31 16:07:51 +02:00
Jan Scheffler
9df7b71e3b
chore(release): mark v10.0.0 ( #7299 )
2021-05-31 14:34:04 +02:00
Jan Scheffler
e7add91d76
chore: fix puppeteer version in chromium roll ( #7300 )
2021-05-31 12:08:52 +00:00
Jan Scheffler
f863f4bfe0
feat(chromium): roll to Chromium 92.0.4512.0 (r884014) ( #7288 )
2021-05-26 16:44:29 +00:00
Robin Richtsfeld
d01aa6c84a
feat(requestinterception): remove cacheSafe flag ( #7217 )
2021-05-20 14:09:56 +02:00
Tim van der Lippe
778ac92469
docs: mention lowercasing of HTTP headers ( #7224 )
2021-05-10 16:27:50 +02:00
Patrick Hulce
cb285a2379
feat: expose other sessions from connection ( #6863 )
2021-05-07 08:31:39 +00:00
Peng-Yu Chen
2605309f74
feat(launcher): add new launcher option waitForInitialPage
( #7105 )
...
The existing behavior is expected to be unchanged as the value defaults to true.
Adding such option would allow user to skip the initial wait.
Issue: #3630
2021-05-06 20:30:04 +00:00
Jan Scheffler
476e9259fe
chore: bump version to v9.1.1-post ( #7206 )
2021-05-05 09:57:19 +00:00
Jan Scheffler
d615dd3d2c
chore(release): mark v9.1.1 ( #7205 )
2021-05-05 10:38:53 +02:00
Jan Scheffler
bcc85a0969
fix: make targetFilter synchronous ( #7203 )
2021-05-05 09:50:50 +02:00
Jan Scheffler
8816645c71
chore: bump version to v9.1.0-post ( #7202 )
2021-05-03 12:40:47 +00:00
Jan Scheffler
1d473bc79f
chore(release): mark v9.1.0 ( #7201 )
2021-05-03 14:08:44 +02:00
Jan Scheffler
ec3fc2e035
feat: add option to filter targets ( #7192 )
...
* feat: add option to filter targets
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-05-03 13:48:31 +02:00
Maksim Sadym
0fa0a34802
chore: bump version to v9.0.0-post ( #7112 )
2021-04-21 11:43:49 +00:00
Maksim Sadym
5872e7178a
chore(release): mark v9.0.0 ( #7111 )
2021-04-21 11:18:09 +00:00
Kiko Beats
a22aa5deac
docs(puppeteer-chromium): remove alpine freetype-dev dependency ( #7098 )
...
It was added by #4643 but doesn’t seem necessary anymore.
2021-04-19 07:28:01 +02:00
David Barton
66a0d5cbcc
docs(api): major grammatical corrections ( #7011 )
...
* docs(api): major grammatical corrections
* fix: own typo in Keyboard comment
Co-authored-by: Jack Franklin <jacktfranklin@chromium.org>
2021-04-06 10:10:00 +00:00
David Barton
c62b02f177
chore: automate prettier in docs ( #7014 )
...
Issue: #7012
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-03-23 10:02:34 +01:00
David Barton
ff860819a7
docs(api): fix lint in code snippets ( #7012 )
2021-03-22 07:12:55 +01:00
Daniel Rowe
dc8ab6d8ca
feat(page): add omitBackground option for page.pdf method ( #6981 )
2021-03-18 19:57:32 +00:00
Robin Richtsfeld
8695759a22
feat(network): request interception and caching compatibility ( #6996 )
...
This patch enables developers to also keep the cache on when doing request interception.
2021-03-17 15:42:35 +01:00
Maciej Brencz
35e66c4304
docs(troubleshooting): update Alpine section ( #6960 )
...
The latest Chromium provided by Alpine is at version 89.
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-03-09 09:02:24 +01:00
David Barton
abb32801d5
chore: add latest chromium version ( #6952 )
2021-03-04 07:50:08 +01:00
Darío Kondratiuk
2ba61e04e9
fix(filechooser): cancel is sync ( #6937 )
...
BREAKING CHANGE: FileChooser.cancel() is now synchronous.
2021-03-02 15:27:11 +01:00
Alex Rudenko
0c26301bee
chore: bump version to v8.0.0-post ( #6929 )
2021-02-26 08:51:52 +00:00
Alex Rudenko
0b5969dea9
chore(release): mark v8.0.0 ( #6928 )
2021-02-26 08:32:27 +00:00
Aurélien Ooms
05c08e7083
docs(api): fix typo in environment variable name ( #6918 )
...
`PUPPETEER_SKIP_DOWNLOAD ~ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD`.
2021-02-23 13:36:30 +01:00
su
ebc3e88fce
docs(api): fix typo ( #6911 )
...
Issue: #6903
Co-authored-by: susan51531 <804885378@qq.com>
2021-02-20 11:31:37 +01:00
Jack Franklin
29c059427e
chore: bump to 7.1.0-post ( #6880 )
2021-02-12 11:19:06 +00:00
Jack Franklin
a681aac7e3
chore(release): mark v7.1.0 ( #6879 )
2021-02-12 10:51:43 +00:00
Alex Rudenko
ad5935738d
feat(page): add color-gamut support to Page.emulateMediaFeatures ( #6857 )
...
The change updates the validation function to allow color-gamut media
features and updates the documentation.
Issues: #6761
2021-02-11 13:59:50 +00:00
Jack Franklin
e16741dee2
chore: mark version 7.0.4-post ( #6851 )
2021-02-09 14:10:28 +00:00
Jack Franklin
db2b4898e1
chore(release): mark v7.0.4 ( #6850 )
2021-02-09 13:24:44 +01:00
Jack Franklin
de904db51d
chore: bump version to 7.0.3-post ( #6846 )
2021-02-09 09:56:17 +01:00
Jack Franklin
27eaf607ce
chore(release): mark v7.0.3 ( #6845 )
2021-02-09 09:49:44 +01:00
David Barton
58d5f9c3ae
docs(troubleshooting): update broken Dockerfile link to historical one ( #6828 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-02-09 09:45:36 +01:00
Jack Franklin
a1d4d7f854
chore: bump version to 7.0.2-post ( #6843 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-02-09 09:44:52 +01:00
Jack Franklin
ff50c86332
chore(release): mark v7.0.2 ( #6842 )
2021-02-09 08:17:15 +00:00
David Barton
b047023eee
chore: clean up remaining Travis references ( #6826 )
...
Issue: #6726
2021-02-08 07:41:26 +01:00
Jack Franklin
c936b18651
chore: bump version to 7.0.1-post ( #6814 )
2021-02-04 10:32:11 +00:00
Jack Franklin
eb0d604bf3
chore(release): mark v7.0.1 ( #6812 )
2021-02-04 10:07:37 +00:00
Jan Scheffler
9abd459b2a
chore: bump version to v7.0.0-post ( #6808 )
2021-02-03 15:54:54 +00:00
Jan Scheffler
edd8bcc619
chore(release): mark v7.0.0 ( #6804 )
2021-02-03 16:33:32 +01:00
Mathias Bynens
03db2cbf2f
chore: fix version number ( #6803 )
2021-02-02 12:32:13 +00:00
Jan Scheffler
20526b57b8
chore: bump version to v6.0.0-post ( #6802 )
2021-02-02 11:22:53 +00:00
Jan Scheffler
ef4767080a
chore(release): mark v6.0.0 ( #6800 )
2021-02-02 12:00:09 +01:00
Samuel Bodin
15bc900be0
docs: correct link for v5.0.0 ( #6778 )
2021-01-25 07:33:45 +01:00
Aravind.H.U
26fa363443
docs(troubleshooting): describe EC2 Amazon-Linux setup ( #6771 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-01-22 09:25:58 +01:00
Jan Scheffler
5ea76e9333
feat: add page.emulateNetworkConditions ( #6759 )
2021-01-21 10:00:57 +01:00
Vse Mozhe Buty
13bce296c3
docs(api): add info for .$x() methods ( #6711 )
...
Possibly connected issue: https://github.com/puppeteer/puppeteer/issues/6710
2021-01-05 08:22:46 +01:00
Vse Mozhe Buty
444c7e0e47
docs(api): fix some typos ( #6712 )
2020-12-31 06:30:27 +01:00
Darío Kondratiuk
2e5c4885af
docs(api): fix GeolocationOptions link ( #6670 )
2020-12-22 14:46:50 +01:00
Vse Mozhe Buty
740c10c7fc
docs(api): fix some typos ( #6672 )
2020-12-22 13:34:44 +01:00
edtam
a16cb8cef4
docs(api): fix description of mouse wheel options ( #6643 )
2020-12-02 15:41:11 +01:00
Michael Kebede
b57f3fcd53
feat: support promise as return value for page.waitForResponse predicate ( #6624 )
...
Co-authored-by: Joni <josalmi@google.com>
2020-11-25 11:35:47 +01:00
Greg Gorlen
3354aa7fa8
docs(api): fix misleading “seconds” for waitForTimeout ( #6619 )
2020-11-24 09:24:36 +01:00
Mathias Bynens
0473a2ae32
chore: bump version to v5.5.0-post ( #6605 )
2020-11-17 11:46:21 +01:00
Mathias Bynens
18143b3573
chore(release): mark v5.5.0 ( #6604 )
2020-11-16 14:38:50 +01:00
ghoussard
d606b8076f
docs(troubleshooting): update dumb-init version ( #6585 )
...
The latest released version of dumb-init is 1.2.2. Binary naming has changed: `dumb-init_x.x.x_amd64` became `dumb-init_x.x.x_x86_64`.
2020-11-05 07:49:20 +01:00
Mathias Bynens
f8cd6c4cce
chore: automate Chromium => Puppeteer version listing ( #6558 )
...
Issue: #6482
2020-10-29 22:24:35 +01:00
Mathias Bynens
8bc8a76c89
docs(api): expand registerCustomQueryHandler example ( #6557 )
...
This patch makes it easier to see exactly how to use the registerCustomQueryHandler API without having to follow the trail of breadcrumbs throughout the docs.
2020-10-29 15:22:03 +01:00
Jack Franklin
d3d7cb92eb
chore: mark v5.4.1-post ( #6553 )
2020-10-27 16:07:36 +00:00
Jack Franklin
562c9c2723
chore: mark version 5.4.1 ( #6552 )
2020-10-27 15:05:43 +00:00
Maciej Brencz
8f4a79e193
docs(troubleshooting): update Alpine Chromium version ( #6529 )
...
The latest Chromium provided by Alpine is at version 85.
2020-10-27 15:26:43 +01:00
Vse Mozhe Buty
a2175c6fdc
docs(queryhandler): fix link ( #6543 )
2020-10-26 11:25:19 +01:00
Johan Bay
d787865066
chore: bump version to v5.4.0-post ( #6544 )
2020-10-26 08:27:40 +01:00
Johan Bay
729cdfe98a
chore: mark version v5.4.0 ( #6542 )
2020-10-23 16:28:38 +02:00
Vse Mozhe Buty
75e3fb035b
docs(api): fix some outdated links ( #6450 )
2020-09-28 18:26:08 +02:00
Yang Guo
96f3d439f5
feat(console): expose stack trace for console messages ( #6445 )
2020-09-25 15:27:13 +02:00
Maksim Sadym
1396c9d4cd
chore: bump version to v5.3.1-post ( #6440 )
2020-09-23 11:28:08 +02:00
Maksim Sadym
c7d32cb92f
chore: mark version v5.3.1 ( #6439 )
2020-09-22 12:49:28 +02:00
Maksim Sadym
17960e5d8d
feat(page): emulate idle state ( #6410 )
...
* https://bugs.chromium.org/p/chromium/issues/detail?id=1090802
* added `page.emulateIdleState(...)` allowing emulate or remove emulation of the idle state;
* added test `emulate idle` -> `remove emulation` -> `emulate idle` -> `remove emulation`;
* added launch argument `--enable-blink-features=IdleDetection` to turn IdleDetection on.
2020-09-14 11:31:23 +02:00
Maksim Sadym
03e41da465
chore: bump version to v5.3.0-post ( #6413 )
2020-09-14 10:17:05 +02:00
Maksim Sadym
030fcaa075
chore: mark version v5.3.0 ( #6412 )
2020-09-11 10:43:09 +02:00
Prashant Ghimire
35cfbe1857
docs(troubleshooting.md): updated commands ( #6296 )
...
prior command installs stable version of chrome (RUN command), but after that, the docs is referring to unstable version.
added correct commands for troubleshooting in linux environment.
2020-09-09 14:39:32 +01:00
lcabral37
13ea347c7d
feat: support configuring the browser download path ( #6014 )
...
By adding support for an environment variable `PUPPETEER_DOWNLOAD_PATH` it is possible to support downloading the browser binaries into a folder outside the `node_modules` folder. This makes it possible to preserve previously downloaded binaries in order to skip downloading them again.
2020-08-10 10:37:31 +02:00
Clay Walker
b4c1e45388
docs: fix setuid sandbox link ( #6310 )
...
Minor documentation fix.
2020-08-10 10:34:09 +02:00
Maciej Brencz
142f88c7c4
docs(troubleshooting): update Alpine Chromium version ( #6320 )
...
The newest Chromium package is now using version 83, which corresponds to Puppeteer v3.1.0.
2020-08-10 07:44:22 +02:00
Hugo Des
1d08e274a8
docs(troubleshooting.md) fix error in docker guidelines ( #6267 )
2020-07-29 12:14:06 +01:00
Jack Franklin
21552f8fe7
feat: page.waitForTimeout ( #6268 )
2020-07-28 10:37:49 +02:00
Jaroslav Maslo
a47b556155
docs(api): fix typo in elementHandle.evaluateHandle() ( #6276 )
2020-07-27 08:14:19 +02:00
Johan Bay
e3933ddd82
chore: mark 5.2.1-post ( #6257 )
2020-07-21 16:24:07 +01:00
Johan Bay
4ee4649de6
chore: mark v5.2.1 ( #6254 )
2020-07-21 14:53:02 +02:00
Mathias Bynens
040f37ec5d
docs: fix link text
...
Closes #6245 .
2020-07-20 07:25:09 +02:00
Adrian Wisernig
2331584467
docs(troubleshooting): install libXss in Dockerfile ( #6236 )
...
The new version of chromium requires libxss.
2020-07-17 13:54:37 +01:00
Jack Franklin
042c4a23d7
chore: mark 5.2.0-post ( #6240 )
2020-07-17 14:48:14 +02:00
Jack Franklin
028f144256
chore: mark v5.2.0 ( #6238 )
2020-07-17 13:44:29 +02:00
Christian Bromann
82645e85c7
docs: better describe how to install Firefox Nightly with Puppeteer ( #6226 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2020-07-16 14:28:09 +02:00
Riccardo Magliocchetti
fb806109a0
docs(troubleshooting): drops obsolete dependencies ( #5354 )
...
It looks like chromium dropped gconf in 2017, while at it remove some other libs from the gtk2 era and bump libappindicator to a gtk3 version.
Current dependencies list for chromium 79 used as reference: https://chromium.googlesource.com/chromium/src.git/+/refs/tags/79.0.3945.144/build/install-build-deps.sh#232
2020-07-14 13:29:15 +02:00
Changhao Han
8d6e0d8a79
chore: mark version to v5.1.0-post ( #6208 )
2020-07-13 10:43:46 +02:00
Changhao Han
8fa18aef99
chore: mark version v5.1.0 ( #6206 )
...
Co-authored-by: Changhao Han <changhaohan@chromium.org>
2020-07-13 10:25:14 +02:00
Jack Franklin
31309b0e20
chore: use devtools-protocol package ( #6172 )
...
* chore: Use devtools-protocol package
Rather than maintain our own protocol we can instead use the devtools-protocol package and pin it to the version of Chromium that Puppeteer is shipping with.
The only changes are naming changes between the bespoke protocol that Puppeteer created and the devtools-protocol one.
2020-07-10 11:51:52 +01:00
Jack Franklin
b9667f9331
chore: document browser install breakage on Node 14.0.0 ( #6187 )
2020-07-09 12:32:49 +01:00
Christian Bromann
e67a860eb0
feat: add Mouse#wheel ( #6141 )
2020-07-06 09:27:17 +02:00
DAOUDI Soufian
d9bb52eab1
docs: fix sandboxing documentation link ( #5288 )
2020-07-03 14:10:52 +02:00
Jack Franklin
928924ed36
chore: mark v5.0.0-post ( #6144 )
2020-07-02 16:13:04 +01:00
Jack Franklin
6d06adea10
chore: mark v5.0.0 ( #6143 )
2020-07-02 14:32:43 +01:00
Jack Franklin
8370ec88ae
feat(types): add (and fix) evaluateHandle
types ( #6130 )
...
This change started as a small change to pull types from DefinitelyTyped over to
Puppeteer for the `evaluateHandle` function but instead ended up also fixing
what looks to be a long standing issue with our existing documentation.
`evaluateHandle` can in fact return an `ElementHandle` rather than a `JSHandle`.
Note that `ElementHandle` extends `JSHandle` so whilst the docs are technically
correct (all ElementHandles are JSHandles) it's confusing because JSHandles
don't have methods like `click` on them, but ElementHandles do.
if you return something that is an HTML element:
```
const button = page.evaluateHandle(() => document.querySelector('button'));
// this is an ElementHandle, not a JSHandle
```
Therefore I've updated the original docs and added a large explanation to the
TSDoc for `page.evaluateHandle`.
In TypeScript land we'll assume the function will return a `JSHandle` but you
can tell TS otherwise via the generic argument, which can only be `JSHandle`
(the default) or `ElementHandle`:
```
const button = page.evaluateHandle<ElementHandle>(() => document.querySelector('button'));
```
2020-07-01 12:44:08 +01:00
Mathias Bynens
8026ca9514
docs(api): fix overview diagram for pptr.dev ( #6128 )
...
We need to serve the image from user-images.githubusercontent.com for it to work properly on pptr.dev. This broke when merging #5947 .
Fixes #6127 .
2020-06-30 15:56:26 +01:00
Toideng
3760302dfe
docs(api): fix broken links in api.md ( #6113 )
...
Fix broken cross-links to classes HTTPRequest and HTTPResponse.
2020-06-26 11:51:08 +02:00
Changhao Han
adeffbaac1
docs(new): migrate Page.ts to TSDoc (part 0 / 2) ( #6104 )
...
* docs(new): migrate Page.ts to TSDoc (part 0 / 2)
Co-authored-by: Changhao Han <changhaohan@chromium.org>
2020-06-26 09:24:56 +02:00
Pete LePage
c1490349bc
chore: remove hardcoded ?hl=en
from docs ( #6097 )
2020-06-25 13:01:46 +02:00
Jack Franklin
37f6032003
feat(api): remove emulateMedia
method ( #6084 )
...
It has been deprecated for a while. In the next breaking release let's remove it.
BREAKING CHANGE: swap to `emulateMediaType` instead.
2020-06-23 16:27:37 +01:00
k.zaitsev
fdc6fda46e
docs: fix effect -> affect typos ( #5985 )
2020-06-23 07:24:15 +02:00
Stefan
2090676a55
docs: fix broken link to DeviceDescriptors.ts ( #6076 )
2020-06-23 06:56:31 +02:00
Tayo Agagu
750f5eecae
docs: fix broken link to USKeyboardLayout file ( #6059 )
...
Link in api doc to USKeyboardLayout returns a 404 (missing common folder in link)
2020-06-22 07:26:04 +02:00
Jack Franklin
7a4170fe6e
chore: remove top level errors and DeviceDescriptors ( #6043 )
...
As far as I can tell these became irrelevant as of v1.15 which added
`puppeteer.errors` and `puppeteer.devices [1]. This is a breaking change
but one that's easily mitigated. We've said that we don't consider
changes to our folder/file structure a breaking change, but we can't
really do that if we have these two top level files that we've
documented.
[1]: e3abb0aa32 (diff-522b24108d7446af4c59873472a90444)
2020-06-19 15:15:13 +02:00
Mathias Bynens
56742ebe8c
chore: bump version to v4.0.0-post ( #6024 )
2020-06-16 08:52:56 +02:00
Mathias Bynens
f1ec6a3df0
chore: update references to branch names ( #6022 )
2020-06-15 17:34:16 +02:00
Jack Franklin
2ffe710177
chore: mark version 4.0.0 ( #6018 )
2020-06-15 14:48:37 +01:00
Jack Franklin
b659969a38
chore: migrate away from Node's EventEmitter ( #5979 )
2020-06-15 11:52:19 +01:00
Tim van der Lippe
398c16d61d
chore: fix docs linter ( #6009 )
...
4205ff79d9
removed the header in the Mouse class documentation, but the linter requires the reference to that header to be removed as well.
2020-06-12 18:24:53 +02:00
Mathias Bynens
4205ff79d9
docs(api): remove subheader for non-namespace
...
This way, pptr.dev doesn’t incorrectly think the header is a namespace.
Ref. #6000 .
2020-06-12 17:13:20 +02:00
Tim van der Lippe
c1d7be379b
docs(api): add copy-pasting text example to Mouse class ( #6000 )
...
There are numerous issues on the Puppeteer issue tracker about selecting and copy-pasting of text (#3252 , #4954 , #423 , #1366 , #343 ) as well as several StackOverflow questions:
- https://stackoverflow.com/questions/57101467/how-do-you-paste-text-using-puppeteer
- https://stackoverflow.com/questions/49131516/how-to-copy-text-from-browser-clipboard-using-puppeteer-in-nodejs
- https://stackoverflow.com/questions/60158746/how-do-i-access-the-contents-of-the-clipboard-from-within-a-headless-puppeteer-t
- https://stackoverflow.com/questions/56306153/domexception-on-calling-navigator-clipboard-readtext
I propose we include this commonly-asked question in the main documentation.
Fixes #3252 .
Fixes #4954 .
2020-06-12 07:32:59 +02:00
Jack Franklin
b86ff21b64
feat(api): add Page.isJavaScriptEnabled + mark properties as private ( #5993 )
...
Just one was used externally and I wrapped that up in a method. I think
it's a useful method to provide (I can imagine wanting to know if JS is
enabled on a page) so I think there's no harm here (I'd rather that then
have JSHandle reach into a private variable).
2020-06-10 16:15:02 +01:00
Henrik Skupin
9c656d417e
chore: remove prefers-color-scheme: no-preference
( #5990 )
...
The 'no-preference' value has been removed from the spec per resolution in [1]. The appropriate web-platform-tests [2] have already been updated.
[1] https://github.com/w3c/csswg-drafts/issues/3857#issuecomment-634779976
[2] https://github.com/web-platform-tests/wpt/pull/24024
2020-06-09 23:17:07 +02:00
Mathias Bynens
c2d32b1c19
chore: rename image assets
2020-06-02 15:24:25 +02:00
Lester Covax
a84e07ceaa
chore: increase readability of Puppeteer diagram ( #5947 )
2020-06-02 15:22:17 +02:00
Jack Franklin
58d1eab794
chore: mark version v3.3.0-post ( #5960 )
2020-06-02 15:20:20 +02:00
Jack Franklin
e84e579c3c
chore: mark version v3.3.0 ( #5959 )
2020-06-02 09:53:53 +01:00
Jack Franklin
309d8115c3
chore: Revert Mitt due to breaking changes ( #5952 )
...
Replacing the Node EventEmitter with Mitt caused more problems than
anticipated for end users due to the API differences and the amount of
people who relied on the EventEmitter API. In hindsight this clearly
should have been explored more and then released as a breaking v4.
This commit rolls us back to the built in Node EventEmitter library
which we can release to get everyone back on stable builds. We can then
consider our approach to migrating to Mitt and when we do do that we can
release it as a breaking change and properly document the migration
strategy and approach.
2020-06-02 09:32:02 +01:00
Jack Franklin
b874cacaef
chore: rename Worker to WebWorker ( #5941 )
...
To avoid TS name conflicts.
2020-05-29 12:57:54 +01:00
Jack Franklin
78624842ef
chore: update request and response references in docs ( #5942 )
...
Missed some Request => HTTPRequest and Response => HTTPResponse renames
when updating the docs.
2020-05-29 12:36:04 +01:00
Jack Franklin
232def0dcf
chore: rename Response
to HTTPResponse
( #5940 )
...
To avoid any conflicts with the TS `Response` type.
2020-05-29 11:49:30 +01:00
Jack Franklin
cfd72acc57
chore: bump version to v3.2.0-post ( #5938 )
2020-05-29 11:27:54 +02:00
Jack Franklin
88b5265be1
chore: mark version v3.2.0 ( #5937 )
2020-05-29 10:22:13 +01:00
Jack Franklin
1d4d25a0f3
Use Mitt as the Event Emitter ( #5907 )
...
* chore: migrate to Mitt as the EventEmitter
This commit moves us to using Mitt [1] for the event emitter in
Puppeteer. This removes our dependency to Node's EventEmitter which is
part of a larger stream of work to enable a Puppeteer-web version that
doesn't depend on Node.
There are no large breaking changes as we support the main methods that
EventEmitter had, but it also provides some methods that Puppeteer
didn't use. Technically end users could depend on this but it's
unlikely.
[1]: https://github.com/developit/mitt
2020-05-29 09:59:26 +01:00
Jack Franklin
8e8a9df3dd
chore: rename Request class to HTTPRequest ( #5934 )
...
It conflicts with an inbuilt TypeScript `Request` type so can cause
confusion when in TS land. Note: `Response.ts` and `Worker.ts` also
suffer from this; PRs to rename them are incoming.
2020-05-29 09:38:40 +01:00
Mathias Bynens
7eab7f8dd9
feat(api): add page.emulateVisionDeficiency(type) ( #5901 )
...
Design doc: https://goo.gle/devtools-cvd
2020-05-26 17:14:20 +02:00
Islam ElHakmi
caaf4d2086
fix: support async functions as an argument for waitForFunction ( #5682 )
2020-05-19 09:09:31 +02:00
Alex Rudenko
e6c22dae05
chore: bump version to v3.1.0-post ( #5884 )
...
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2020-05-18 14:16:25 +02:00
Alex Rudenko
8ba36752e7
chore: mark version v3.1.0 ( #5883 )
...
* chore: mark version v3.1.0
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2020-05-18 13:47:03 +02:00
Michal TOMA
a17bd89fb9
feat: add securityDetails.subjectAlternativeNames() #5628 ( #5881 )
...
Co-authored-by: Michal TOMA <michaltoma2205@gmail.com>
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
Fixes #5625 . Closes #5628 .
2020-05-18 12:59:57 +02:00
Mathias Bynens
ad3613db14
docs(contributing): clarify list of Chromium versions ( #5878 )
2020-05-18 09:26:19 +02:00
Jack Franklin
ae576aff61
chore: mark v3.0.4-post ( #5824 )
2020-05-07 12:04:22 +02:00
Jack Franklin
c214d20d54
chore: mark version v3.0.4 ( #5823 )
2020-05-07 11:52:59 +02:00
Jack Franklin
51154824d8
chore: bump version to 3.0.3-post ( #5814 )
2020-05-06 17:27:31 +02:00
Jack Franklin
dd5bdf1616
chore: mark version v3.0.3 ( #5813 )
2020-05-06 15:57:04 +01:00
Vasilii Artemchuk
53d6fabf80
docs(api.md): improve emulateMediaFeatures section ( #5807 )
2020-05-05 07:43:14 +02:00
Jack Franklin
ec91ecaf0b
chore: migrate src/Launcher to TypeScript ( #5775 )
2020-04-30 13:45:58 +01:00
ɯλrv¬
a8908cf3e0
chore: update incorrect link for DeviceDescriptors ( #5777 )
2020-04-30 09:14:12 +01:00
Jack Franklin
8ddf4f3114
chore: bump version to 3.0.2-post ( #5759 )
2020-04-28 11:10:39 +01:00
Jack Franklin
646f42e98c
chore: mark version v3.0.2 ( #5752 )
2020-04-28 10:23:19 +01:00
Jack Franklin
1358b45fca
chore: migrate src/LifecycleWatcher ( #5734 )
2020-04-27 10:03:33 +01:00
Jack Franklin
1a4e260458
chore: migrate src/BrowserFetcher to TypeScript ( #5727 )
...
* chore: migrate src/BrowserFetcher to TypeScript
2020-04-24 08:57:53 +01:00
munrocket
ddb8ba1baf
chore: tidy up and de-duplicate Travis CI config ( #5716 )
2020-04-23 09:29:37 +01:00
Jack Franklin
9d297f0827
chore: Bump version to 3.0.1-post ( #5717 )
2020-04-22 16:07:57 +01:00
Jack Franklin
6029fdd618
chore: mark version v3.0.1 ( #5709 )
2020-04-22 11:10:04 +01:00
Sam
69bfa80084
Update api.md ( #5706 )
2020-04-22 09:41:49 +01:00
Stano Bo
5c839f5e48
chore(docker): add missing libgbm1 dependency ( #5693 )
2020-04-20 17:28:18 +02:00
atlanteh
ad6c57aeb9
docs: fix DeviceDescriptor link ( #5683 )
2020-04-20 09:20:52 +02:00
Ryō Igarashi
35fc65492d
docs: change the Alpine Docker example to use env instead of launch option ( #5666 )
2020-04-17 11:30:26 +02:00
Mathias Bynens
46ef9f79ca
docs(troubleshooting): list libgbm-dev dependency ( #5667 )
...
Fixes #5661 .
2020-04-17 10:14:18 +02:00
Mathias Bynens
80348dc574
chore: bump version to v3.0.0-post ( #5649 )
2020-04-16 11:23:26 +02:00
Changhao Han
6760b9225e
chore: mark version v3.0.0 ( #5642 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2020-04-16 10:43:12 +02:00
Maja Frydrychowicz
d817ae5a4b
fix: update preferred revision after Launcher is created ( #5640 )
...
Fixes an edge case where Puppeteer looked for a Chromium revision when launching Firefox.
Allow appropriate Launcher to be instantiated when calling `Puppeteer.connect`.
Add an example of running Firefox.
2020-04-14 18:42:48 +02:00
Joshua H
21c2d31523
docs(api): update another emulateMediaType example ( #5607 )
2020-04-08 11:33:34 +02:00
Joshua H
fefa8ca8a2
docs(api): update emulateMediaType example ( #5606 )
2020-04-08 10:17:49 +02:00
Jack Franklin
88446df724
chore: fix missed src/
vs lib/
documentation ( #5591 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2020-04-06 10:32:42 +02:00
Bello Gbadebo
b3b0dc5025
docs: replace invalid device descriptors link ( #5589 )
...
Fixes #5588 .
2020-04-06 08:50:13 +02:00
Konstantin Vyatkin
f43468452a
chore: fix link to source files in documentation ( #5576 )
...
Look like it was overlooked while moving source files.
2020-04-03 12:02:24 +02:00
Maja Frydrychowicz
c82b5560f0
docs: connect works with any supported browser ( #5572 )
2020-04-02 10:35:47 +02:00
Yuki Takizawa
a3d1536a6b
Bugfix: Docker build failure ( #5400 )
...
The recommended Dockerfile uses node:10-slim image as a base,
but the base image does not contain wget command anymore.
(About the reason, see https://github.com/nodejs/docker-node/issues/1185 )
So fixed the problem.
2020-03-12 17:01:39 +01:00
Maja Frydrychowicz
33f1967072
(feat) Add option to fetch Firefox Nightly ( #5467 )
...
* (feat) Add option to fetch Firefox Nightly
Add Firefox support to BrowserFetcher and the install script.
By default, the latest Firefox Nightly is downloaded
directly from archive.mozilla.org (dmg, tar.bz2 and zip)
This also required changes that impact `puppeteer.launch()`
and `puppeteer.executablePath()`
Fixes #5151
* Update docs/api.md
Co-Authored-By: Mathias Bynens <mathias@qiwi.be>
* Clean up revision promise
* Improve error handling in revision check
* Remove matchAll
* Use explicit octal mode
* Update .gitignore
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2020-03-10 21:59:03 +01:00
Changhao Han
807fbbdc20
chore: drop Node.js v8 support ( #5365 )
...
* chore: update relevant Node.js versions from 8 to 10
* chore: remove node6 and node8 folders from puppeteer-firefox ci
* fix: loosen definition for proc.stdio
* fix: update typescript version used in npm run test-types
2020-03-10 21:55:32 +01:00
WuerfelDev
0b1777e73c
docs(api) Fix url ( #5367 )
...
A little slash had been missing since eddb23b521
2020-02-06 22:54:48 +01:00
Changhao Han
5ffcde2b7b
chore: bump version to v2.1.1.-post ( #5390 )
2020-02-06 16:28:15 +01:00
Changhao Han
46386eb866
chore: mark version v2.1.1 ( #5388 )
2020-02-05 14:36:04 +01:00
Grzegorz (Greg) Ziółkowski
0d243b7a0f
feat: make it possible to run install.js
script with puppeteer-core
( #5325 )
...
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2020-01-28 13:08:13 +01:00
Feu
c283fea6c5
docs(api): add example to page.$$eval ( #5200 )
...
This makes it more clear that the callback receives an actual array of nodes instead of just a NodeList.
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2020-01-27 16:19:33 +01:00
Mathias Bynens
b45f8e4703
chore: bump version to v2.1.0-post ( #5349 )
2020-01-27 16:00:07 +01:00
Mathias Bynens
a30cf05e3a
chore: mark version v2.1.0 ( #5347 )
...
This changes the Chromium revision to r722234 (Chrome 80.0.3987.0),
since that's the most recent version in the Chromium 80 range for
which a download exists for all supported platforms.
2020-01-27 15:48:40 +01:00
Erik Kotsiuba
6cc98a7b63
docs(troubleshooting): recommend using args for heroku ( #5197 )
...
Co-Authored-By: Mathias Bynens <mathias@qiwi.be>
2019-11-27 10:01:39 +01:00
Mathias Bynens
eddb23b521
chore: update URLs ( #5185 )
2019-11-26 13:12:25 +01:00
Maja Frydrychowicz
c5a72e9887
feat(launcher): add option to run Puppeteer with different browsers ( #5137 )
...
* feat: Set which browser to launch via PUPPETEER_PRODUCT
This change introduces a PUPPETEER_PRODUCT environment
variable as a first step toward using Puppeteer with
many different browsers. Setting PUPPETEER_PRODUCT=firefox, for
example, enables Firefox-specific Launcher settings.
The state is also exposed as `puppeteer.product` in the API
to support adding other product-specific behaviour as needed.
The bulk of the change is a refactoring in Launcher
to decouple generic browser start-up from product-specific
configuration.
Respecting the puppeteer-core restriction for PUPPETEER_
environment variables, lazily instantiate the Launcher
based on a `product` Puppeteer.launch option, if available.
* test: Distinguish Juggler unit tests from Firefox
The funit script is renamed to fjunit (j for Juggler, which is
used only by the experimental puppeteer-firefox package.
In contrast, the funit script now refers to running Puppeteer
unit tests against the main puppeteer package with Firefox.
To do so with Firefox Nightly, run:
`BINARY=path/to/firefox npm run funit`
A number of changes in this patch make it easier to run
Puppeteer unit tests in Mozilla's CI.
2019-11-26 10:23:19 +01:00
Darío Kondratiuk
fd43f9c23a
docs(api.md): fix defaultArgs link ( #5126 )
...
Closes #5094 .
2019-11-04 19:43:04 -03:00
Chris Calo
5fa28b585f
docs(api.md): fix typo ( #5120 )
2019-11-02 18:42:29 -04:00
Benj Fassbind
561c99d52a
docs(api.md): prefer async/await over Promise#then ( #5089 )
...
Fixes #5082 .
2019-10-26 11:00:39 +02:00
Mathias Bynens
7032472af7
chore: bump version to v2.0.0-post
2019-10-24 17:38:39 +02:00
Mathias Bynens
aa246973b9
chore: mark version v2.0.0 ( #5078 )
2019-10-24 14:46:50 +02:00
theeko
7f3e372b14
docs(api.md): improve page.waitFor docs for the options
object ( #5021 )
2019-10-24 11:22:21 +02:00
Vse Mozhet Byt
8132b39a6c
docs(api.md): remove duplicate code from an example ( #5072 )
2019-10-24 11:21:38 +02:00
Mathias Bynens
1248a19135
feat(api): add page.emulateTimezone(timezoneId) ( #4949 )
...
This enables dynamically changing the timezone of the page.
2019-10-23 15:49:39 +02:00
Mathias Bynens
a86363fda6
feat(api): add page.emulateMedia{Type,Features} ( #5012 )
2019-10-23 13:55:00 +02:00
Julien Landuré
c0ba8f9a19
docs(troubleshooting): update Alpine Chromium versions ( #4980 )
...
Chromium 77 is now the default version installed in Alpine.
2019-10-16 10:05:17 +02:00
Darío Kondratiuk
7dbb10859c
docs(api): list Chromium version for Puppeteer v1.20.0 ( #5015 )
2019-10-10 11:44:18 +01:00
Chris B
dc57d03c19
docs(api): clarify type
method examples ( #5010 )
2019-10-07 08:32:35 +02:00
Mathias Bynens
387a532707
chore: bump version to v1.20.0-post ( #4939 )
2019-09-13 19:58:13 -07:00
Mathias Bynens
a5f03ce1c8
chore: mark version v1.20.0 ( #4928 )
2019-09-12 15:21:21 -07:00
Vitalii Tverdokhlib
93843592da
docs(troubleshooting): fix Alpine version link ( #4927 )
2019-09-11 10:30:59 +02:00
Pavel Feldman
73fd7ff822
feat(api): add element.select and element.evaluate for consistency ( #4892 )
2019-09-04 15:19:34 -07:00
Artem Sheremet
cba0f98a2a
docs(troubleshooting): Fix missing package in Docker instructions ( #4877 )
...
`ttf-freefont` is gone -- looks like it's [replaced](https://packages.debian.org/search?keywords=ttf-freefont ) by `fonts-freefont-ttf`, which is [available since oldoldstable](https://packages.debian.org/search?keywords=fonts-freefont-ttf ).
2019-08-24 20:13:56 -07:00
Joel Einbinder
07eaad9aaa
fix(api): tbd release date ( #4872 )
2019-08-22 15:03:26 -07:00
Vitalii Tverdokhlib
ff6d2a33f3
docs(puppeteer-chromium): docker alpine switch to Alpine 3.10 ( #4644 )
2019-08-13 16:37:49 -07:00
Drew Powers
656fe46047
docs(circleci): Improve CircleCI troubleshooting docs ( #4813 )
...
Adds note about Jest maxWorkers as well as the base image to start with. This is an improvement over the previous section I wrote, from me banging my head against a YAML file all week 🙃 .
2019-08-07 08:51:31 -07:00
Drew Powers
374177b433
docs(circleci): Add CircleCI to troubleshooting docs ( #4810 )
...
This came from personal difficulties in running Puppeteer tests on CircleCI. I tried to keep the note as brief as possible, while being helpful for an entire CI platform.
2019-08-06 17:18:10 -07:00
Yevhen
7fded54903
docs(api.md): fix typo ( #4761 )
2019-07-29 14:14:31 -07:00
Andrey Lushnikov
62f5dc7375
chore: bump version to v1.19.0-post ( #4745 )
2019-07-22 22:34:10 -07:00
Andrey Lushnikov
af0d229044
chore: mark version v1.19.0 ( #4744 )
2019-07-22 22:02:45 -07:00
Andrey Lushnikov
ea28cccfe0
feat(page): introduce file chooser interception ( #4653 )
...
This patch introduces a page.waitForFileChooser() method
that adds a watchdog to wait for file chooser dialogs.
This lets Puppeteer users to capture file chooser requests
and fulfill/cancel them if necessary.
Fixes #2946
2019-07-22 21:30:49 -07:00
Marc Jansen
492132f9b0
docs(api.md): Slightly enhanced wording ( #4631 )
2019-06-29 13:58:27 +02:00
jeremykerr-sp
a069a1203d
docs(puppeteer-chromium): docker alpine freetype-dev dependency ( #4643 )
...
A freetype update broke bitmap fonts. Adding freetype-dev to the Alpine dependencies resolves related issues.
This resolves these errors when launching chromium:
```/usr/bin/chromium-browser
Error relocating /usr/lib/chromium/chrome: FT_Get_Color_Glyph_Layer: symbol not found
Error relocating /usr/lib/chromium/chrome: FT_Palette_Select: symbol not found```
Background:
https://bugs.alpinelinux.org/issues/10309
https://github.com/stark/siji/issues/28
https://github.com/lucy/tewi-font/issues/35
2019-06-29 13:55:23 +02:00
Andrey Lushnikov
4ccd52c309
chore: bump version to v1.18.1-post ( #4630 )
2019-06-26 10:57:38 -07:00
Andrey Lushnikov
a2cf81dd78
chore: mark version v1.18.1 ( #4628 )
2019-06-26 10:40:38 -07:00
Andrey Lushnikov
411347cd7b
chore: bump version to v1.18.0-post ( #4608 )
2019-06-20 18:46:36 -04:00
Andrey Lushnikov
c96454d42c
chore: mark version v1.18.0 ( #4606 )
2019-06-20 18:13:45 -04:00
Takahiro Nishino
792264122c
fix(page): fix A2 and A3 format size ( #4569 )
...
16.5 inch ~ 419.1mm
16.54 inch ~ 420.1mm
Fix #4568
2019-06-10 20:59:12 -07:00
Andrey Lushnikov
65b7e8ecc0
docs(api.md): add notes on race condition in page.setViewport ( #4319 )
...
Fixes #2755 .
2019-06-10 18:07:24 -07:00
Michael Oryl
4bcdfc97dd
docs(api.md): clarify frame/page.goto()'s handling of HTTP error statuses ( #4553 )
...
The documentation for frame.goto() and page.goto() were updated to make
it clear that the method will not throw an error if the HTTP requests
results in any valid HTTP status code being returned by the remote
server.
2019-06-09 18:32:06 -07:00
alea12
aca99cd89c
docs(troubleshooting): add missing double quotes ( #4548 )
2019-06-08 17:29:29 -07:00
Andrey Lushnikov
f52738ec1e
docs(api.md): clarify on HTTP error responses ( #4507 )
2019-06-03 14:54:30 -07:00
Vitalii Tverdokhlib
94ff4de309
docs(troubleshooting): fix comment ( #4512 )
2019-06-02 10:49:48 -07:00
Jasmine Hegman
111350c502
docs(troubleshooting.md): update Alpine instructions ( #4494 )
...
Update Alpine to Chromium 73 and Puppeteer 1.12.2
According to the compatibility pages these are the
most recent, compatible versions.
2019-05-29 11:03:48 -07:00
Andrey Lushnikov
084cf02119
chore: bump version to v1.17.0-post ( #4468 )
2019-05-24 03:24:53 +03:00
Andrey Lushnikov
1840ef01cc
chore: mark version v1.17.0 ( #4467 )
2019-05-24 03:13:14 +03:00
Jake Causon
90a1032300
fix(network): stringify response headers for intercepted requests ( #4436 )
...
Stringifying the headers was the behaviour before v1.15
References #4379
2019-05-20 11:05:32 +03:00
Aos
3f19bd57a5
docs(troubleshooting.md): Fixed alpine install example ( #4445 )
2019-05-19 16:48:25 +03:00
Andrey Lushnikov
04906494c4
chore: bump version to v1.16.0-post ( #4422 )
2019-05-14 01:47:47 +03:00
Andrey Lushnikov
9f2635c4ac
chore: mark version v1.16.0 ( #4421 )
2019-05-14 01:15:35 +03:00
Joel Einbinder
a3cb16308c
feat: root
option in page.accessibility.snapshot() ( #4318 )
...
Going from `AXNode` -> `ElementHandle` is turning out to be controversial.
This patch instead adds a way to go from `ElementHandle` -> `AXNode`. If the API looks good, I'll add it into Firefox as well.
References #3641
2019-05-09 23:39:42 -07:00
James Ross
a0b54f041f
docs(troubleshooting.md): Pin Alpine Chromium version ( #4359 )
...
- Pins Alpine Chromium version to prevent updates from causing issues
When using these instructions today, I found that the Chromium version in the latest Alpine edge was 73, which caused errors with Puppeteer.
Pinning to the latest 72 version in Alpine registry resolved the issue, and should prevent others from running into it in the future.
2019-05-09 17:41:55 -07:00
Joel Einbinder
1516e0df21
feat(workers): create workers from service workers and shared workers ( #4397 )
...
This allows users to easily evaluate javascript inside service workers and shared workers by creating a Worker object for them.
2019-05-09 17:29:18 -07:00
Andrey Lushnikov
ef24c69c62
fix(tracing): start without options ( #4388 )
2019-05-09 17:15:33 -07:00
Leandro Carlos Romero
9a2fb2a0d4
docs(troubleshooting.md): Update CentOS documentation ( #4398 )
...
If you running in CentOS you should update nss dependency.
2019-05-09 16:29:09 -07:00
Tony Brix
511dcf9d32
feat(browser): Add browser.isConnected() ( #4403 )
...
Add `browser.isConnected()` to the public api to be able to tell when the browser is connected
fixes https://github.com/smooth-code/jest-puppeteer/pull/237#issuecomment-490260041
2019-05-09 16:24:52 -07:00
Andrey Lushnikov
e2e6b88934
feat(chromium): roll Chromium to r654752 ( #4358 )
...
This roll includes:
- https://crrev.com/653809 - FrameLoader: ignore failing provisional loads entirely
- https://crrev.com/654750 - DevTools: make sure Network.requestWillBeSent is emitted on time for sync xhrs
The FrameLoader patch is the reason behind the test change. It's
actually desirable to fail frame navigation if the frame detaches - and
that's consistent with Firefox.
Fixes #4337
2019-04-28 20:19:01 -07:00
Joel Einbinder
d64f700203
fix(docs): screen readers aren't the only kind of assistive technology ( #4349 )
...
The docs incorrectly implied that screen readers were the only assistive technology to do filtering on the tree.
@alice
2019-04-26 13:40:08 -07:00
Andrey Lushnikov
1e29e5bc0f
chore: bump version to v1.15.0-post ( #4347 )
2019-04-26 00:44:58 -07:00
Andrey Lushnikov
b9f4a95175
chore: mark version v1.15.0 ( #4346 )
2019-04-25 19:25:16 -07:00
Stopkin Sergey
06fdcaeeec
docs(troubleshooting): remove unnecessary call ( #4327 )
...
Removed unused `rm -rf` call. This directory doesn't exist (and same for all root docker images).
2019-04-23 12:25:55 -07:00
Andrey Lushnikov
e3abb0aa32
feat(puppeteer): introduce puppeteer.errors
and puppeteer.devices
( #4312 )
...
These getters are introduced as a more convenient substitute for
a `require('puppeteer/Errors')` and
`require('puppeteer/DeviceDescriptors')`.
This way we can make cross-browser story nicer - a single require
of `puppeteer` or `puppeteer-firefox` fully defines Puppeteer
environment.
2019-04-19 15:33:06 -07:00
Andrey Lushnikov
1b8769d09e
docs(troubleshooting): launching Chromium on Windows ( #4235 )
...
Fixes #3186 .
2019-04-02 19:59:17 -07:00
Neil Halelamien
695b30a425
docs(troubleshooting): fix docker example ( #3743 )
...
* removing libgconf-2-4 install since no longer needed according to https://bugs.chromium.org/p/chromium/issues/detail?id=795759#c7
* wget is already included in `node:8-slim` image, so removed lines related to install/cleanup
* node 8 has EOL this year, so incremented to node:10-slim
* use "docker run --init" if available (available in docker-engine >= 1.13.0)
* make dumb-init optional
* combine permission changes and 'npm install' of puppeteer into same line to reduce image size by few hundred MB
* overall image size reduction: 1.21GB -> 865MB
2019-04-02 19:30:23 -07:00
John Youngblood
66ff4928eb
docs(api.md): Working link to Linux differences ( #4232 )
...
A link on line 525 is pointing to a undefined branch (`lkcr`) in `chromium.googlesource.com/chromium/src/`. Change it to point to `lkgr` instead, since it's the closest defined branch in name.
2019-04-02 19:15:20 -07:00
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