Nikolay Vitkov
0b7f0216e9
chore: remove docs warnings ( #10959 )
2023-09-21 11:09:27 +02:00
Alex Rudenko
9cfc195794
test: enable queryObjects for bidi ( #10964 )
2023-09-21 10:49:30 +02:00
Nikolay Vitkov
7b5eabcc37
chore: BiDi setCacheEnabled ( #10961 )
2023-09-20 16:39:36 +02:00
Alex Rudenko
a4f13b53af
test: unskip csp tests ( #10960 )
2023-09-20 16:27:55 +02:00
Alex Rudenko
af42663edb
test: unskip touch tests ( #10955 )
2023-09-20 14:52:43 +02:00
Alex Rudenko
3f79beb71a
test: unskip aria tests ( #10953 )
2023-09-20 12:11:21 +00:00
jrandolf
164bdd29b0
chore: use custom disposable stack ( #10943 )
2023-09-19 18:13:51 +02:00
jrandolf
cfed7b93ec
fix: make CDPSessionEvent.SessionAttached
public ( #10941 )
2023-09-19 17:42:40 +02:00
jrandolf
2292078969
feat: implement BrowserContext.closed
( #10928 )
2023-09-18 20:11:55 +02:00
jrandolf
60582b7fbc
refactor: migrate browsingContext methods to frame ( #10881 )
2023-09-18 14:14:06 +02:00
jrandolf
a4345a477f
feat: implement Browser.connected
( #10927 )
2023-09-18 11:14:10 +02:00
jrandolf
d088da31b2
docs: improve Browser docs ( #10925 )
2023-09-18 11:05:23 +02:00
jrandolf
09207a71b8
chore: separate code to semantic folders ( #10914 )
2023-09-16 22:56:40 +02:00
jrandolf
a1b1bffb72
fix: remove explicit resource management from types ( #10918 )
2023-09-15 17:07:05 +02:00
jrandolf
c949656a43
chore: use @typescript-eslint/consistent-type-imports
( #10913 )
2023-09-15 13:00:20 +02:00
jrandolf
1c66c547b1
chore: use throwIfDisposed
in ElementHandle
and JSHandle
( #10904 )
2023-09-14 11:57:06 +02:00
jrandolf
9342bac263
feat: implement improved Drag n' Drop APIs ( #10651 )
2023-09-14 11:14:30 +02:00
jrandolf
9b6f1de8b9
feat: implement typed events ( #10889 )
2023-09-13 15:47:55 +02:00
Nikolay Vitkov
2e650f36e5
refactor: use RxJs for WaitForNetworkIdle ( #10888 )
2023-09-12 12:00:04 +00:00
Nikolay Vitkov
2487486675
chore: expectations update ( #10859 )
2023-09-12 09:24:09 +00:00
jrandolf
eb89720704
chore: reimplement document caching ( #10878 )
2023-09-11 12:07:52 +00:00
jrandolf
253d469515
chore: implement exposeFunction
( #10860 )
2023-09-11 12:46:17 +02:00
Alex Rudenko
73f741ea33
docs: update docs about touchmove ( #10847 )
2023-09-05 10:42:19 +02:00
Nikolay Vitkov
0ab6f76945
docs: fix warnings, remove node 14, sort files ( #10846 )
2023-09-05 10:41:21 +02:00
jrandolf
d4bf52985e
refactor: use generic implementations ( #10833 )
2023-09-05 09:10:16 +02:00
jrandolf
690b1c2218
chore: use bindIsolatedHandle
( #10810 )
2023-09-01 15:13:29 +00:00
jrandolf
f3c7499e67
chore: refactor handles to use realms ( #10830 )
2023-09-01 12:12:29 +00:00
jrandolf
7e74439c51
chore: enable 'return-await` ( #10832 )
2023-09-01 09:49:33 +02:00
jrandolf
538bb73ea7
fix: implement throwIfDetached
( #10826 )
2023-08-31 16:39:32 +02:00
jrandolf
c67141f3ae
chore: implement Disposable/AsyncDisposable on Page and Browser ( #10809 )
2023-08-30 13:10:06 +02:00
jrandolf
4d3cb6ccf3
chore: refactor Frame ( #10808 )
2023-08-30 11:09:27 +00:00
jrandolf
b9744b2c95
chore: refactor Sandbox and IsolatedWorld ( #10807 )
2023-08-30 12:24:38 +02:00
jrandolf
900a1f227d
chore: turn on rulesdir/use-using
( #10806 )
2023-08-30 10:02:59 +00:00
jrandolf
2401bb46b1
chore: implement moveable ( #10803 )
2023-08-29 22:48:37 +02:00
jrandolf
8c07631bd1
chore: implement (Async)Disposable on handles ( #10802 )
2023-08-29 21:44:59 +02:00
Alex Rudenko
c4bad4a6da
chore: support Tab targets ( #10148 )
2023-08-28 08:20:57 +02:00
jrandolf
c4a4412920
chore: implement waitForFrame
and use clickablePoint
for ElementHandle operations ( #10778 )
2023-08-24 20:32:29 +02:00
jrandolf
5c161274f7
chore: implement ElementHandle.prototype.clickablePoint
( #10775 )
2023-08-24 14:36:24 +02:00
jrandolf
5f8d2a43b2
chore: use abstract for implemented methods ( #10774 )
2023-08-23 18:00:34 +02:00
jrandolf
27636afacf
chore: implement boxModel
, contentFrame
, and nested frame boundingBox
( #10773 )
2023-08-23 16:58:18 +02:00
jrandolf
ce9e2df04d
chore: update dependencies ( #10763 )
2023-08-21 20:13:03 +02:00
Alex Rudenko
8f9388f2ce
fix(locators): do not retry via catchError ( #10762 )
2023-08-21 16:32:13 +00:00
Alex Rudenko
fc08a7dd54
fix: locator.fill should work for textareas ( #10737 )
...
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2023-08-17 06:05:58 +00:00
jrandolf
0c59e9a1cb
chore: implement mapHandle
and filterHandle
( #10716 )
2023-08-09 14:36:58 +00:00
Alex Rudenko
f70048c84f
refactor: turn Frame into EventEmitter ( #10711 )
2023-08-08 16:42:45 +02:00
jrandolf
1b44b911d3
fix: use handle frame instead of page ( #10676 )
2023-08-03 12:11:44 +02:00
Nikolay Vitkov
76f67ebd76
chore: add Dialogs for BiDi ( #10659 )
2023-08-01 15:53:02 +02:00
Nikolay Vitkov
0757d04358
chore: update chromium-bidi ( #10620 )
2023-07-28 11:11:14 +02:00
jrandolf
fdada74ba7
feat: implement Locator.prototype.waitHandle
( #10650 )
2023-07-27 10:47:29 +02:00
jrandolf
16ab291b93
chore: specialize Locator.prototype.setWaitForEnabled
( #10649 )
2023-07-27 10:17:27 +02:00
jrandolf
6ad92f7f84
feat: implement function locators ( #10632 )
2023-07-27 09:23:28 +02:00
jrandolf
34be28db5d
feat: implement immutable locator operations ( #10638 )
2023-07-26 17:00:00 +02:00
jrandolf
e73d35def0
feat: implement Locator.prototype.filter
( #10631 )
2023-07-25 16:46:10 +02:00
jrandolf
47eecf5bb1
feat: implement Locator.prototype.map
( #10630 )
2023-07-25 16:45:10 +02:00
jrandolf
5d34d42d15
feat: implement Locator.prototype.wait
( #10629 )
2023-07-25 16:43:18 +02:00
jrandolf
ede43ca2d3
chore: use RxJS for locator implementation ( #10607 )
...
Using RxJS greatly simplifies the control flow for locators and comes with automatic cleanup on failure. It greatly simplifies the `signal` logic and the retry logic.
2023-07-25 12:43:07 +02:00
Alex Rudenko
996d53fc65
chore: support targets for bidi ( #10615 )
2023-07-24 12:23:39 +02:00
Alex Rudenko
d0c5b8e089
feat: add page.createCDPSession method ( #10515 )
2023-07-21 14:03:52 +02:00
Alex Rudenko
0e60ce4cec
refactor: move Target to api ( #10602 )
2023-07-21 09:04:14 +02:00
jrandolf
0603f71f77
chore: implement type signatures for internal Locator methods ( #10603 )
2023-07-20 18:44:02 +02:00
Alex Rudenko
44712d1e6e
refactor!: use Target for filters ( #10601 )
2023-07-20 16:18:00 +02:00
jrandolf
0715ad8281
refactor: move locators to separate files ( #10591 )
2023-07-20 15:06:42 +02:00
Alex Rudenko
6c9306a72e
feat: add autofill support ( #10565 )
2023-07-19 17:42:31 +00:00
jrandolf
c14f9b64a7
chore: implement typed Locators, expects, and internal contexts ( #10573 )
2023-07-19 15:39:38 +00:00
Alex Rudenko
c7f3fb21be
test: enable addScriptTag tests ( #10583 )
2023-07-18 21:55:30 +02:00
Alex Rudenko
3b4ff2ad32
test: enable waitForXPath tests ( #10580 )
2023-07-18 21:11:12 +02:00
Nikolay Vitkov
88439f913e
fix: update the target to ES2022 ( #10574 )
2023-07-18 18:28:03 +02:00
Alex Rudenko
a419abf509
test: unskip style tag tests ( #10572 )
2023-07-18 18:27:41 +02:00
Alex Rudenko
e3dd5968ca
fix(locators): reject the race if there are only failures ( #10567 )
2023-07-18 11:26:06 +02:00
Alex Rudenko
6f31c52217
docs: update gpu docs ( #10562 )
2023-07-17 12:13:13 +00:00
Nikolay Vitkov
de09b058ba
chore: update Prettier and other deps ( #10555 )
2023-07-17 10:52:54 +02:00
Alex Rudenko
56a97dd2fb
fix: add an internal page.locatorRace ( #10512 )
2023-07-06 09:24:19 +02:00
Kiko Beats
87aaed4807
feat(screenshot): enable optimizeForSpeed ( #10492 )
2023-07-03 11:43:34 +02:00
Baptiste Lombard
a88d1936ca
docs: replace evaluateHandle with evaluate in the evaluate page ( #10439 )
2023-06-23 11:14:30 +02:00
Nikolay Vitkov
337184e722
chore: BiDi waitForNavigation ( #10424 )
2023-06-21 12:45:17 +02:00
jrandolf
3ba7fba838
chore: implement Bidi keyboard ( #10417 )
2023-06-19 17:44:39 +02:00
jrandolf
4f6b0d4e45
chore: implement Webdriver BiDi mouse and touchscreen ( #10402 )
...
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2023-06-19 11:26:30 +00:00
Nikolay Vitkov
c06e15fb5b
fix: added clipboard permission that was not exposed ( #10119 )
2023-06-19 08:53:54 +00:00
jrandolf
39847bd231
refactor: use input API for CDP inputs ( #10401 )
2023-06-19 10:12:43 +02:00
Nikolay Vitkov
138cc5c961
fix: WaitForNetworkIdle and Deferred.race ( #10411 )
2023-06-19 08:11:59 +00:00
jrandolf
ede6f5cfe2
chore: separate input api ( #10400 )
2023-06-19 09:33:19 +02:00
Alex Rudenko
90a9de7257
chore: implement default context and newPage/pages ( #10397 )
2023-06-16 15:27:31 +02:00
Alex Rudenko
eda592426e
chore: enable waitForFunction tests ( #10396 )
2023-06-16 12:58:08 +02:00
Nikolay Vitkov
d560299aa8
chore: add waitForSelector for BiDi ( #10383 )
2023-06-16 09:16:04 +02:00
Alex Rudenko
903afc3715
chore: implement acceptInsecureCerts and version for BiDi ( #10365 )
2023-06-13 10:17:23 +02:00
Nikolay Vitkov
9aee41a53d
chore: run more BiDi test ( #10355 )
2023-06-12 14:50:30 +02:00
Alex Rudenko
ba28724952
fix: Locator.scroll in race ( #10363 )
2023-06-12 12:07:16 +00:00
Nikolay Vitkov
a31231ef54
chore: implement common functions for BiDi ( #10345 )
2023-06-12 11:32:19 +02:00
Alex Rudenko
9c35e9ab1f
feat: implement Locator.race ( #10337 )
2023-06-07 12:45:02 +02:00
Nikolay Vitkov
0371beebba
chore: $ and $$ BiDi support ( #10318 )
2023-06-06 12:39:54 +00:00
Alex Rudenko
1d43e571d1
chore: refactor locator options ( #10325 )
2023-06-06 13:03:32 +02:00
Alex Rudenko
b81b019083
chore: mark Locator constructor as private ( #10322 )
2023-06-06 11:51:34 +02:00
Alex Rudenko
1f978f5fc5
feat: implement Locators ( #10305 )
2023-06-02 17:46:10 +00:00
Nikolay Vitkov
4d0dbbc517
feat: add page.removeExposedFunction
( #10297 )
2023-06-02 14:08:36 +02:00
Nikolay Vitkov
9abd48a062
fix: content() not showing comments outside html tag ( #10293 )
2023-06-01 21:51:16 +02:00
Thiago Perrotta
27db1eb4f4
docs: add webp to captureScreenshot.format ( #10295 )
2023-06-01 15:49:27 +00:00
Nikolay Vitkov
39e9737232
refactor: Deferred to a class ( #10282 )
2023-05-31 23:36:19 +02:00
Nikolay Vitkov
3fdad21744
chore: update Docs dependencies ( #10275 )
2023-05-31 09:30:22 +00:00
Nikolay Vitkov
e61d9cbb4b
chore: refactor waitForNetworkIdle + waitForEvent ( #10277 )
2023-05-31 09:32:16 +02:00
Alex Rudenko
54d6192262
chore: add methods to configure locators ( #10273 )
2023-05-30 13:20:00 +00:00
Nikolay Vitkov
b03acac30f
chore: add support for waitForNetworkIdle ( #10261 )
2023-05-30 11:07:55 +00:00
Junyan
b5a124ff73
feat: Page.removeScriptToEvaluateOnNewDocument ( #10250 )
...
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2023-05-26 07:56:45 +00:00
Nikolay Vitkov
0cac94c0d6
chore: EventEmitter should mimic NodeJS' one ( #10241 )
2023-05-24 17:57:56 +02:00
Alex Rudenko
9ca9bbf259
chore: implement fill for locators ( #10220 )
2023-05-23 13:55:12 +02:00
Junyan
81f73a55f3
feat: Page.setBypassServiceWorker ( #10229 )
...
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2023-05-23 13:51:32 +02:00
Nikolay Vitkov
070ee03d31
chore: network module for BiDi ( #10159 )
2023-05-22 14:52:31 +02:00
Alex Rudenko
87ca58f97a
chore: implement locators for scroll and hover ( #10219 )
2023-05-22 09:57:51 +00:00
Nikolay Vitkov
2808240c71
chore: implement Frames for BiDi ( #10121 )
2023-05-15 16:39:47 +02:00
Alex Rudenko
9a1aff8a4c
chore: implement locators with a click ( #10009 )
...
Co-authored-by: jrandolf <101637635+jrandolf@users.noreply.github.com>
2023-05-05 09:11:16 +00:00
Nikolay Vitkov
a856f8ff76
docs: fix link in JSHandle ( #10106 )
2023-05-02 09:48:44 +02:00
Alex Rudenko
df4d60c187
feat!: switch to Chrome for Testing instead of Chromium ( #10054 )
...
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2023-05-02 08:53:40 +02:00
jrandolf
8124a7d5bf
fix: implement click count
( #10069 )
2023-04-25 13:28:47 +02:00
jrandolf
e5d6864056
docs: improve docs on file upload ( #10058 )
2023-04-21 14:15:19 +02:00
Alex Rudenko
8283823cb8
fix: continue requests without network instrumentation ( #10046 )
2023-04-20 12:28:56 +00:00
Marcus Otterström
28154eff6f
docs: Document options ( #10035 )
...
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2023-04-19 08:19:50 +00:00
Alex Rudenko
26c81b7408
feat: add ElementHandle.isVisible and ElementHandle.isHidden ( #10007 )
2023-04-12 11:19:46 +02:00
Alex Rudenko
0d556a71d6
feat: add ElementHandle.scrollIntoView ( #10005 )
2023-04-12 07:17:18 +02:00
Alex Rudenko
656b562c74
fix: make isIntersectingViewport work with SVG elements ( #10004 )
2023-04-11 14:05:10 +00:00
Nikolay Vitkov
327febe2c9
chore: importFs handles it's own error ( #9971 )
2023-04-04 17:29:29 +02:00
Nikolay Vitkov
1396274477
docs: remove some redundant instances of @returns ( #9943 )
2023-03-30 11:54:00 +00:00
Nikolay Vitkov
e0eef01f1c
docs: use code block for single values ( #9936 )
2023-03-29 15:27:29 +02:00
Nikolay Vitkov
a99abc9a2f
docs: remove unhelpful api pages ( #9933 )
2023-03-28 18:02:00 +00:00
Nikolay Vitkov
c4e1675589
chore: fix BiDi to use cm ( #9926 )
2023-03-28 11:57:58 +00:00
Nikolay Vitkov
3866e462bc
chore: add basic screenshot to BiDi ( #9923 )
2023-03-28 13:02:59 +02:00
Nikolay Vitkov
95c99e84b8
chore: add PDF print for BiDi ( #9914 )
2023-03-27 11:39:40 +02:00
Michael "Z" Goddard
a5149d52f5
feat: add Page.waitForDevicePrompt ( #9299 )
...
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2023-03-21 10:21:10 +01:00
Nikolay Vitkov
16b39de5ca
chore: extract HTTP prep for BiDi network module ( #9840 )
2023-03-15 17:51:34 +01:00
Nikolay Vitkov
38d511b5c2
docs: fix some api-extractor warnings ( #9806 )
2023-03-09 09:22:09 +01:00
Nikolay Vitkov
004a99aaef
chore: implement simple BiDi ElementHandle ( #9753 )
2023-03-01 11:09:17 +01:00
Nikolay Vitkov
eefe9583d0
chore: Add EsLint rule import/order ( #9685 )
2023-02-15 15:09:31 -08:00
Nikolay Vitkov
0c85c0611c
chore: Implement JSHandle for BiDi ( #9660 )
2023-02-15 10:29:18 +00:00
jrandolf
eb138635d6
fix: fix circularity on JSHandle interface ( #9661 )
2023-02-13 11:25:07 -08:00
Nikolay Vitkov
b8ea891ab8
chore: Extract JSHandle to API ( #9632 )
2023-02-09 18:04:06 +01:00
Rafael-Martins
f12f27e1eb
docs: clarify the waitForXPath return type ( #9541 ) ( #9583 )
2023-02-01 15:23:32 +00:00
Ophir Back
e3d69ec554
feat(page): Adding support for referrerPolicy in page.goto
( #9561 )
...
Issue: #9394
**What kind of change does this PR introduce?**
Feature - Added support of the `referrerPolicy` parameter (from CDP's
`Page.navigate`) to Puppeteer's `page.goto`.
**Did you add tests for your changes?**
No, currently it has no meaning that isn't browser implementation based,
which might get broken in the future. If there are suggestions to tests,
please let me know so I'll add them.
**If relevant, did you update the documentation?**
Yes, the documentation of the `goto` method has been updated.
**Summary**
I wanted to contribute to this project, which I used for testing on our
environment and saw issue #9394 , so I decided to resolve it :)
**Does this PR introduce a breaking change?**
No. I added the `referrerPolicy` as an optional parameter, which will
use the HTTP header `Referrer-Policy` if not provided (much like the
`referer` parameter) so it will not interfere.
Co-authored-by: Ophir Back <ophir.back@broadcom.com>
2023-01-23 11:11:20 +00:00
Alex Rudenko
6847f8835f
fix: improve screenshot method types ( #9529 )
...
The only drawback of adding overrides is that our documentation
generator would generate a page for each overload which might be hard to
read/find on the documentation website.
Closes #9512 #9385
2023-01-18 14:06:20 +00:00
Kian-Meng Ang
4437bceb6e
docs: fix typos ( #9476 )
...
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2023-01-16 20:25:09 +01:00
Alex Rudenko
1668d47b2f
docs: various doc improvements ( #9396 )
...
See commits for details.
Closes #1837 , #5880 , #7822 , #8101 , #8821 , #9367 , #9382 , #9378 , #4731
2022-12-09 13:57:39 +01:00
Nikolay Vitkov
89ff872120
chore: Update CI file to use new set method ( #9389 )
...
Closes #9373 ,
Fixes #9296
2022-12-09 10:49:53 +01:00
Thibaud Colas
afc75884d7
docs: fix documentation typo in Page.waitForSelector optional visible
parameter ( #9381 )
...
**What kind of change does this PR introduce?**
Typo fix in the documentation
**Did you add tests for your changes?**
No
**If relevant, did you update the documentation?**
N/A
**Summary**
I spotted the `Visible` parameter had an uppercase `V` in the [Remarks
section of the Page.waitForSelector API
documentation](https://pptr.dev/api/puppeteer.page.waitforselector#remarks ).
Updated this to the lowercase `v` in the relevant places (source,
documentation, versioned version of the doc page).
While doing this, I also spotted there was an extra space in `are :` in
the sentence above – so changed that as well.
**Does this PR introduce a breaking change?**
No
**Other information**
I’ve confirmed the parameter is spelled correctly on
https://pptr.dev/api/puppeteer.waitforselectoroptions . I’m not sure why
the documentation for those properties is in two places with slightly
different wording – but to me it felt useful to see this directly on the
method’s API docs.
2022-12-08 13:59:18 +01:00
Robin Richtsfeld
1501edefa8
docs(requestinterception): remove outdated note ( #9358 )
...
See #7304 @jschfflr Seems like we missed some
Thanks to @chrismdd for spotting this
2022-12-07 07:33:27 +00:00
Alex Rudenko
f3c87dcdb7
chore: upgrade mitt ( #9340 )
2022-11-29 19:50:58 +00:00
Guillaume Gomez
0a2d310e4e
docs: fix typo in Viewport fields ( #9293 )
...
The `deviceScalarFactor` field of `Viewport` is actually named
`deviceScaleFactor`.
2022-11-17 17:27:07 +01:00
Alex Rudenko
30c6b13eec
chore: re-export all exports ( #9241 )
...
Adds index files to subfolders and removes generation of types.ts in
puppeteer-core.
2022-11-10 17:11:18 +01:00
Alex Rudenko
122778a1f8
feat: expose browser context id ( #9134 )
...
Closes #9132
2022-10-19 08:30:57 +00:00
Alex Rudenko
a19b270018
chore: extract BrowserContext to its own file ( #9133 )
2022-10-19 07:06:31 +00:00
jrandolf
87c08fd86a
fix!: remove puppeteer.devices
in favor of KnownDevices
( #9075 )
...
This PR removes the deprecated `puppeteer.devices` in favor of a new
exported object `KnownDevices`. `devices` can also be exported, but has
been deprecated.
2022-10-10 15:30:12 +02:00
jrandolf
41d0122b94
fix!: deprecate indirect network condition imports ( #9074 )
2022-10-06 23:52:58 +02:00
jrandolf
f42336cf83
feat: separate puppeteer and puppeteer-core ( #9023 )
...
This PR moves the puppeteer source code into separate mono-repo packages:
- `puppeteer` and `puppeteer-core` are now separated into their own
packages.
- `puppeteer-core` has a new exports called `puppeteer-core/internal`
for internal usage.
Tests and various tools have been updated to accommodate the migration.
2022-10-05 14:17:03 +02:00