Maksim Sadym
0533764aac
test: pass protocol
in Puppeteer.connect
in tests ( #11342 )
...
Add an internal field protocol: 'cdp' | 'webDriverBiDi' to the Browser and use is in tests when Puppeter.connect(...) is called.
Co-authored-by: Maksim Sadym <sadym@google.com>
2023-11-10 12:55:08 +00:00
Nikolay Vitkov
0d4aab828a
chore: fix BiDi deserializer ( #11264 )
2023-10-30 13:02:04 +01:00
Nikolay Vitkov
5278de9276
chore: use internal method for networkidle with BiDi ( #11167 )
2023-10-24 10:07:35 +02:00
Nikolay Vitkov
9d34c09013
chore: update chromium-bidi ( #11179 )
...
Co-authored-by: Randolf <jrandolf@google.com>
2023-10-19 10:18:12 +02:00
Nikolay Vitkov
0316863391
feat: added tagged (accessible) PDFs option ( #11182 )
2023-10-17 16:37:07 +02:00
Thiago Perrotta
c6333cb13b
test: add an E2E test for device request prompt ( #11159 )
2023-10-16 13:50:54 +00:00
Nikolay Vitkov
5ce3abe675
chore: use RxJS instead of waitWithTimeout ( #11160 )
2023-10-16 14:37:52 +02:00
Alex Rudenko
3171115085
refactor: move target checks to the api surface ( #11137 )
2023-10-12 12:15:06 +02:00
Nikolay Vitkov
4a2a37b825
chore: add a deflake utility ( #11111 )
2023-10-11 19:21:50 +02:00
jrandolf
a3fce3118a
chore: add support for format and quality to BiDi ( #11124 )
2023-10-11 16:53:50 +00:00
Nikolay Vitkov
c8feb3e472
refactor: use RxJS for waitForTarget ( #11029 )
2023-10-11 08:11:22 +00:00
jrandolf
f060d467c0
feat: implement screencasting ( #11084 )
2023-10-06 16:50:39 +02:00
jrandolf
9c0c299f0b
chore: remove emulation from touchscreen tests ( #11003 )
2023-10-06 11:08:44 +02:00
jrandolf
317f82055b
fix: update file chooser events ( #11057 )
2023-10-06 08:28:19 +02:00
Alex Rudenko
28c1c2662a
test: crash mocha if unhandled errors occur ( #11055 )
2023-09-29 09:32:53 +00:00
Alex Rudenko
c5f2d28b76
test: move queryObjects to a CDP only tests ( #11050 )
2023-09-29 11:14:35 +02:00
Darío Kondratiuk
88681a8171
test: Remove invalid drag and drop test ( #11054 )
2023-09-28 15:25:11 +00:00
Alex Rudenko
b0d7375519
fix: remove the flag disabling bfcache ( #11047 )
2023-09-28 11:44:04 +02:00
jrandolf
bd6c246b18
chore: add @typescript-eslint/no-import-type-side-effects ( #11040 )
2023-09-26 18:24:24 +02:00
Alex Rudenko
e0e7e3a5df
test: move cdp only tests to a subfolder ( #11033 )
...
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2023-09-26 10:13:22 +02:00
jrandolf
c3bd8eb878
chore: implement BiDi sendCharacter ( #11000 )
2023-09-22 17:22:25 +02:00
jrandolf
f21e903633
chore: remove legacy checks in keyboard tests ( #10995 )
2023-09-22 14:22:10 +02:00
jrandolf
4ca36454c3
chore: set allowViewportExpansion to captureBeyondViewport ( #10992 )
2023-09-22 13:48:01 +02:00
jrandolf
464386ecf5
chore: deflake textarea test ( #10983 )
2023-09-21 22:50:36 +02:00
jrandolf
ecd6ac9dfa
chore: implement element screenshot ( #10963 )
2023-09-21 21:21:12 +02:00
Alex Rudenko
7bcdfcb7e9
fix: handle missing detach events for restored bfcache targets ( #10967 )
2023-09-21 11:13:12 +02:00
jrandolf
c505c85b31
chore: fix BiDi mouse move implementation ( #10956 )
2023-09-20 17:58:02 +02:00
Alex Rudenko
af42663edb
test: unskip touch tests ( #10955 )
2023-09-20 14:52:43 +02:00
jrandolf
164bdd29b0
chore: use custom disposable stack ( #10943 )
2023-09-19 18:13:51 +02:00
Julian Descottes
c49320ee87
test: upstream test and expectation for Firefox sync to puppeteer v21… ( #10898 )
2023-09-18 18:04:02 +02:00
jrandolf
a0e57f7eb2
fix: fix line/column number in errors ( #10926 )
2023-09-18 11:52:04 +02:00
jrandolf
5e9bc691ed
chore: enable dumpio
test only on old headless ( #10922 )
2023-09-18 08:56:18 +02:00
jrandolf
09207a71b8
chore: separate code to semantic folders ( #10914 )
2023-09-16 22:56:40 +02:00
jrandolf
c949656a43
chore: use @typescript-eslint/consistent-type-imports
( #10913 )
2023-09-15 13:00:20 +02:00
jrandolf
9342bac263
feat: implement improved Drag n' Drop APIs ( #10651 )
2023-09-14 11:14:30 +02:00
Nikolay Vitkov
aefbde60d7
refactor: align names ( #10903 )
2023-09-13 21:57:26 +02:00
browser-automation-bot
4b8d20d0ed
feat: roll to Chrome 117.0.5938.62 (r1181205) ( #10893 )
...
Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
2023-09-13 14:35:47 +00:00
jrandolf
9b6f1de8b9
feat: implement typed events ( #10889 )
2023-09-13 15:47:55 +02:00
Nikolay Vitkov
06c1588016
fix: LifecycleWatcher sub frames handling ( #10841 )
2023-09-04 16:16:37 +02:00
Nikolay Vitkov
12bdd70651
chore: more BiDi Connection test to unit ( #10839 )
2023-09-04 14:06:23 +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
92f38ff5c9
chore: remove excess internal comments ( #10827 )
2023-08-31 16:39:58 +02:00
Alex Rudenko
22daf1861f
fix: make page.goBack work with bfcache in tab mode ( #10818 )
2023-08-30 14:28:07 +00:00
Alex Rudenko
d3b4135b46
test: fix DevTools target test ( #10814 )
2023-08-30 13:14:18 +02:00
jrandolf
900a1f227d
chore: turn on rulesdir/use-using
( #10806 )
2023-08-30 10:02:59 +00:00
Alex Rudenko
a540085176
feat: expose DevTools as a target ( #10812 )
2023-08-30 11:32:38 +02:00
Alex Rudenko
14f0ab7397
fix: apply viewport emulation to prerender targets ( #10804 )
2023-08-30 11:04:28 +02:00
jrandolf
2401bb46b1
chore: implement moveable ( #10803 )
2023-08-29 22:48:37 +02:00
Alex Rudenko
085936bd7e
fix: make network manager multi session ( #10793 )
2023-08-29 18:12:04 +02:00
jrandolf
a3db064cbb
chore: update dependencies ( #10785 )
2023-08-28 13:01:52 +02:00
Alex Rudenko
c4bad4a6da
chore: support Tab targets ( #10148 )
2023-08-28 08:20:57 +02:00
jrandolf
5c161274f7
chore: implement ElementHandle.prototype.clickablePoint
( #10775 )
2023-08-24 14:36:24 +02:00
jrandolf
27636afacf
chore: implement boxModel
, contentFrame
, and nested frame boundingBox
( #10773 )
2023-08-23 16:58:18 +02: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
Alex Rudenko
81ecb60190
fix: relative ordering of events and command responses should be ensured ( #10725 )
2023-08-16 14:12:29 +00:00
Alex Rudenko
f70048c84f
refactor: turn Frame into EventEmitter ( #10711 )
2023-08-08 16:42:45 +02:00
Nikolay Vitkov
f4c711e25b
chore: BiDi close error ( #10687 )
2023-08-04 14:45:38 +02:00
Nikolay Vitkov
4a0a2bb2db
chore: enable PuppeteerUtil test for BiDi ( #10686 )
2023-08-04 11:02:30 +00: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
Alex Rudenko
448a18310d
refactor: add browser target ( #10642 )
2023-07-27 09:56:13 +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
Nikolay Vitkov
7d97b5804f
chore: launcher test should respect headless ( #10625 )
2023-07-25 07:06:35 +00:00
Julian Descottes
186b994fba
test: upstream test and expectation for Firefox sync to puppeteer v20.9.0 ( #10622 )
2023-07-25 08:30:03 +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
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
jrandolf
5a411ca629
chore: use clock.restore for locator test ( #10597 )
2023-07-20 10:23:37 +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
browser-automation-bot
830f926d48
feat: roll to Chrome 115.0.5790.98 (r1148114) ( #10584 )
...
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2023-07-19 08:11:45 +00:00
jrandolf
b032b629cb
test: skip headful tests in headless modes ( #10578 )
2023-07-18 20:18:22 +02:00
Alex Rudenko
e3dd5968ca
fix(locators): reject the race if there are only failures ( #10567 )
2023-07-18 11:26:06 +02:00
Nikolay Vitkov
de09b058ba
chore: update Prettier and other deps ( #10555 )
2023-07-17 10:52:54 +02:00
Nikolay Vitkov
0d2c42a1c4
ci: fix Actions not running sometimes ( #10503 )
2023-07-04 14:17:25 +02:00
Nikolay Vitkov
0caf124182
chore: move unit tests ( #10498 )
2023-07-03 13:25:43 +00:00
Nikolay Vitkov
d0d738d2fc
chore: readd browser setup hook ( #10478 )
2023-07-03 14:01:29 +02:00
Alex Rudenko
5a3abb2f5e
ci: fix mocha utils ( #10496 )
2023-07-03 11:41:24 +02:00
Alex Rudenko
02634d80da
test: update tests for aborted requests ( #10476 )
2023-06-30 11:56:16 +02:00
jrandolf
84a956f56b
fix: fix escaping algo for P selectors ( #10474 )
2023-06-29 11:00:57 +00:00
jrandolf
1c80ebe846
chore: update Bidi key values ( #10466 )
2023-06-29 07:31:49 +00:00
Nikolay Vitkov
1f0dc4f3a3
refactor: move EventEmitter tests ( #10463 )
2023-06-28 13:36:26 +02:00
Nikolay Vitkov
ceb6fbb365
chore: use a less chatty BiDi+ ( #10453 )
2023-06-28 09:54:16 +02:00
Alex Rudenko
e452647739
chore: move Deferred test ( #10452 )
2023-06-26 14:01:36 +02:00
Alex Rudenko
c35084dd2c
ci: separate unit tests ( #10436 )
2023-06-26 10:57:48 +02:00
Nikolay Vitkov
45a05e038b
chore: add Deferred.race test ( #10432 )
2023-06-21 22:51:15 +02:00
Nikolay Vitkov
ff8529696d
ci: remove before hooks ( #10431 )
2023-06-21 19:41:09 +00:00
Nikolay Vitkov
337184e722
chore: BiDi waitForNavigation ( #10424 )
2023-06-21 12:45:17 +02:00
jrandolf
fbdcc0d646
fix: add parenthesis to JS values in interpolateFunction ( #10426 )
2023-06-20 16:26:10 +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
jrandolf
39847bd231
refactor: use input API for CDP inputs ( #10401 )
2023-06-19 10:12:43 +02:00
Alex Rudenko
90a9de7257
chore: implement default context and newPage/pages ( #10397 )
2023-06-16 15:27:31 +02:00
Nikolay Vitkov
d560299aa8
chore: add waitForSelector for BiDi ( #10383 )
2023-06-16 09:16:04 +02:00
Alex Rudenko
2961449391
test: misc test improvements ( #10371 )
2023-06-13 13:05:01 +00:00
Alex Rudenko
9473d740e7
chore: tracing over bidi+ ( #10370 )
...
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2023-06-13 09:25:32 +00:00
Alex Rudenko
c2d3488ad8
fix: specify the context id when adding bindings ( #10366 )
2023-06-13 10:17:48 +02:00
Alex Rudenko
903afc3715
chore: implement acceptInsecureCerts and version for BiDi ( #10365 )
2023-06-13 10:17:23 +02:00
jrandolf
35aedc0dbb
feat: add reset
to mouse ( #10340 )
2023-06-12 17:59:28 +00:00
Nikolay Vitkov
9aee41a53d
chore: run more BiDi test ( #10355 )
2023-06-12 14:50:30 +02:00
Nikolay Vitkov
a31231ef54
chore: implement common functions for BiDi ( #10345 )
2023-06-12 11:32:19 +02:00
Nikolay Vitkov
e3e68a99d2
chore: use launch
helper ( #10344 )
2023-06-12 10:44:18 +02:00
Nikolay Vitkov
3552d97360
chore: update dependencies ( #10336 )
2023-06-07 11:17:31 +00:00
Alex Rudenko
9c35e9ab1f
feat: implement Locator.race ( #10337 )
2023-06-07 12:45:02 +02:00
Nikolay Vitkov
dde569b97d
ci: fix flaky test ( #10335 )
2023-06-07 10:18:01 +02:00
Nikolay Vitkov
0371beebba
chore: $ and $$ BiDi support ( #10318 )
2023-06-06 12:39:54 +00:00
Alex Rudenko
514ad107d7
docs: add a few examples for ARIA queries ( #10320 )
...
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2023-06-06 09:46:26 +02:00
Alex Rudenko
ade6ad89f4
test: update bidi tests for firefox ( #10316 )
2023-06-05 16:11:30 +00: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
Nikolay Vitkov
39e9737232
refactor: Deferred to a class ( #10282 )
2023-05-31 23:36:19 +02:00
Alex Rudenko
54d6192262
chore: add methods to configure locators ( #10273 )
2023-05-30 13:20:00 +00:00
Alex Rudenko
73b72b31b2
test: catch unhandled in a network test ( #10242 )
2023-05-30 08:03:06 +00:00
Alex Rudenko
ff22ba8679
refactor: rename DeferredPromise to Deferred ( #10255 )
2023-05-26 09:42:22 +00:00
Junyan
b5a124ff73
feat: Page.removeScriptToEvaluateOnNewDocument ( #10250 )
...
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2023-05-26 07:56:45 +00:00
Alex Rudenko
79b5299c5b
chore: recover Buffer.concat on errors ( #10252 )
2023-05-26 06:45:02 +00:00
Alex Rudenko
c9cca17833
refactor: make deferred promises more robust to use ( #10245 )
2023-05-26 08:02:17 +02:00
Nikolay Vitkov
557ec24cfc
fix: stacktraces should not throw errors ( #10231 )
2023-05-24 14:42:08 +02:00
Alex Rudenko
cf28dae775
chore: convert async describe to sync ( #10238 )
2023-05-24 12:08:36 +00:00
Nikolay Vitkov
49360eac10
chore: fixes expectation for test in Firefox ( #10239 )
2023-05-24 11:56:24 +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
Nikolay Vitkov
c00cf45009
chore: create a test helper for launching browser ( #10152 )
2023-05-11 13:10:27 +00:00
jrandolf
317fa732f9
feat: implement detailed errors for evaluation ( #10114 )
2023-05-10 10:23:29 +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
4615607b7d
chore: add test console after navigation ( #10110 )
2023-05-04 09:43:12 +00: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
Nikolay Vitkov
e4b57c279a
chore: add EsLint rule for no-floating-promises
( #10084 )
2023-04-26 09:53:02 +00:00
Alex Rudenko
4dd4cb9292
feat: add AbortSignal to waitForFunction ( #10078 )
...
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2023-04-26 10:50:08 +02:00
Nikolay Vitkov
5e79d53bd3
refactor: tests use toHaveLength and waitEvent ( #10061 )
2023-04-25 15:02:25 +02:00
jrandolf
8124a7d5bf
fix: implement click count
( #10069 )
2023-04-25 13:28:47 +02:00
Alex Rudenko
704624eb20
fix: move fs.js to the node folder ( #10055 )
2023-04-21 09:45:04 +02:00
Alex Rudenko
8283823cb8
fix: continue requests without network instrumentation ( #10046 )
2023-04-20 12:28:56 +00:00
jrandolf
bbf2c0a8ec
chore: use AbortSignal instead of AbortController ( #10048 )
2023-04-20 08:18:48 +02:00
Alex Rudenko
9109b76276
feat: support AbortController in waitForSelector ( #10018 )
2023-04-18 16:45:10 +00:00
jrandolf
34db39e447
fix: improve mouse actions ( #10021 )
2023-04-17 10:56:51 +02:00
Alex Rudenko
26c81b7408
feat: add ElementHandle.isVisible and ElementHandle.isHidden ( #10007 )
2023-04-12 11:19:46 +02:00