Henrik Skupin
5c592913a8
chore: ignore stdout when dumpio isn't used ( #7644 )
...
When the browser child process has logging enabled
and output on stdout isn't constantly processed,
the brower process is about to freeze.
To avoid such a situation at least the stdout
pipe shouldn't be set by default but only if
dumpio is enabled.
Co-authored-by: Jan Scheffler <janscheffler@chromium.org>
2021-10-07 21:43:57 +00:00
Tomas Junnonen
b20c2bfa24
fix: add webp to screenshot quality option allow list ( #7631 )
...
This allows passing through the screenshot quality option from Puppeteer to Chrome
when using the WebP image format
2021-10-07 21:15:24 +00:00
Jan Scheffler
2d37430838
chore: update types for JSHandle ( #7650 )
...
Closes #7583
2021-10-07 16:04:08 +00:00
Henrik Skupin
e7f82626ca
chore: disable certain Fission features for Firefox ( #7610 )
2021-10-07 12:13:54 +02:00
Darío Kondratiuk
51229c12f1
docs(page): add missing docs to emulateCPUThrottling ( #7630 )
...
The text was taken from the protocol.
2021-10-05 07:49:30 +00:00
Edgard Lorraine Messias
d0cb9436a3
fix(page): fix page.off method for request event ( #7624 )
...
This patch fixes page.off for request event
Closes : #7572
2021-10-04 06:59:46 +00:00
Mikkel Snitker
fd607b1095
chore: propagate 'Invalid header' errors ( #7020 )
...
Enable developers to handle 'Invalid header' errors instead of hiding them to make sure they can address them properly.
Co-authored-by: Jan Scheffler <janscheffler@chromium.org>
2021-10-04 06:18:03 +00:00
Darío Kondratiuk
327282e047
docs: fix drag and drop docs ( #7617 )
2021-10-02 11:01:44 +02:00
Josh Grime
44c9ec67c5
fix(page): fallback to default in exposeFunction when using imported module ( #6365 )
2021-09-29 18:32:49 +02:00
s
b4ba9c803d
chore: fix typings for ElementHandle.screenshot() options ( #7602 )
2021-09-29 15:46:57 +00: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
Nadhir
eebf452d38
fix: add support for relative install paths to BrowserFetcher ( #7613 )
...
This patch fixes the BrowserFetcher._getFolderPath method so that it supports relative download paths using PUPPETEER_DOWNLOAD_PATH or npm config
Issues: #7592
2021-09-29 14:21:38 +00:00
Tan Li Hau
26145e9a24
feat: add custom debugging port option ( #4993 )
2021-09-29 16:05:18 +02:00
Jan Scheffler
113489d3b5
fix(launcher): launcher.launch() should pass 'timeout' option #5180 ( #7596 )
...
Co-authored-by: Bob Jamison <bob.jamison@pearson.com>
2021-09-27 10:01:35 +02:00
dmitrysteblyuk
f2e19276ac
chore: add hared TaskQueue for page.screenshot()
again ( #6714 )
2021-09-23 14:37:35 +02:00
Kiko Beats
b1f6e8692b
feat: allow to customize tmpdir ( #7243 )
2021-09-23 09:26:00 +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
Yosuke Kurami
cb4470a6d9
feat(coverage): option for raw V8 script coverage ( #6454 )
2021-09-15 18:54:24 +00:00
Xavier Prud'homme
caa2b732fe
fix(frame): fix Frame.waitFor's XPath pattern detection ( #5184 )
...
Up to now, only strings starting with '//' are considered as to XPath selectors. Unfortunately, this is too restricting. This fix allows valid XPath selectors starting with: '/', './', and even '(//*[1])'
2021-09-15 11:45:59 +00:00
Peter Marshall
726cb14003
chore: remove unused tracing category for cpu profiling ( #5866 )
2021-09-15 11:59:38 +02:00
headlesstesting
6a2bf0aaba
feat: add User-Agent with Puppeteer version to WebSocket request ( #5614 )
...
This will add the User-Agent header to WebSocket requests.
2021-09-15 07:40:43 +00:00
Noam Lustiger
300be5d167
feat: add id option to addScriptTag ( #5477 )
2021-09-14 23:02:05 +02:00
Paul Adams
af2b5fca12
chore: clarify error message when node is not clickable ( #6949 )
2021-09-14 16:38:58 +00: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
Voltrex
57d1bd4240
refactor(node): apply optimizations ( #7557 )
...
Replaced unnecessary template strings and used less calls for optimization.
2021-09-13 09:14:23 +00:00
Albert Nigmatzianov
491614c7f8
fix(types): allow evaluate functions to take a readonly array as an argument ( #7072 )
2021-09-11 21:31:08 +00:00
Remco Haszing
723052d5bb
feat(typescript): allow using puppeteer without dom lib ( #6998 )
...
The dom lib inserts all dom related types into the project, which is often
undesirable when working on a NodeJS project.
This change injects global stubs for the dom types required by puppeteer, so
puppeteer can work without users having to add dom types to their project.
Closes #6989
2021-09-11 20:59:51 +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
Michael Rienstra
b5020dc041
feat: add more Android models to DeviceDescriptors ( #7210 )
...
Adds device descriptions for:
* Galaxy S8
* Galaxy S9+
* Galaxy Tab S4
* Pixel 3
* Pixel 4
These devices are regarded as worthy of targeting by [BrowserStack](https://www.browserstack.com/test-on-the-right-mobile-devices ).
Sources (both have identical data for these 5 devices):
1. https://github.com/aerokube/moon-deploy/blob/master/moon-local.yaml#L199
2. https://www.danhendricks.com/2018/04/adding-iphone-galaxy-chrome-mobile-emulated-devices/#heading_device_data
2021-09-11 17:50:35 +00:00
Jan Potoms
040a0e561b
fix: use non-deprecated tracing categories api ( #7413 )
2021-09-10 20:23:35 +00:00
Voltrex
f04ffdbe2c
refactor(common): move actual constants ( #7512 )
...
The values of these constant variables are always the exact same when the `parseAriaSelector()` function is called, so these can be moved out of the function.
2021-09-10 19:28:30 +00:00
pyoor
2aec35553b
fix: update firefox prefs documentation link ( #7539 )
2021-09-10 18:59:43 +00:00
Theodore Messinezis
5735f31d78
chore: enable followRedirects for NodeWebSocket ( #7555 )
2021-09-10 20:34:25 +02:00
TASNEEM KOUSHAR
34ff00e2fe
chore(docs): generate site for v10.0.0
...
* fix: added parts of website
* fix: removed unnecessary lines
* fix: updated contributing.md
* fix: added parts of sidebar
* fix: added all APIs
* fix: added version 10.0.0
Co-authored-by: Jack Franklin <jacktfranklin@chromium.org>
2021-08-09 09:57:14 +01:00
Jan Scheffler
e10faad4f2
feat(chromium): roll to Chromium 93.0.4577.0 (r901912) ( #7387 )
2021-08-04 14:22:15 +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
TASNEEM KOUSHAR
c65b10c524
chore: remove more ts-doc warnings ( #7422 )
2021-07-19 10:39:40 +01: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
TASNEEM KOUSHAR
2a403d1973
chore(docs): fix tsdoc warnings
...
* fix: added script
* fix: updated script
* fix: updated script
* fix: added comment
* fix: added comments
* fix: connection method to public
* fix: removed incorrect tags
* fix: some of the warnings
2021-07-12 10:42:44 +01: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
TASNEEM KOUSHAR
d541e975ae
chore: documentation improvements
2021-07-09 09:12:01 +01:00