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
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
Alex Rudenko
e7265c9aa9
fix: ignore extraInfo events if the response is served from cache ( #9983 )
2023-04-06 12:29:10 +02:00
Alex Rudenko
c8f6adf9f3
refactor: use browsers for launchers ( #9937 )
2023-04-04 13:29:21 +00:00
Nikolay Vitkov
fe934ad092
chore: fix only for skipped tests ( #9964 )
2023-04-04 09:37:15 +02:00
jrandolf
728547d460
fix: use shadowRoot for tree walker ( #9950 )
2023-03-31 17:19:59 +02:00
Alex Rudenko
9af680d3e5
chore: increase timeouts for tests creating many pages ( #9931 )
2023-03-28 15:09:18 +00:00
Nikolay Vitkov
95c99e84b8
chore: add PDF print for BiDi ( #9914 )
2023-03-27 11:39:40 +02:00
Alex Rudenko
de86cafe3c
chore: reduce default timeout to 10s ( #9906 )
2023-03-24 09:35:45 +01:00
jrandolf
6c018acf5d
chore: update deep implementation for P selectors ( #9908 )
2023-03-23 15:46:33 +01:00
Alex Rudenko
976684e4e1
chore: remove operations for now ( #9899 )
2023-03-22 16:56:12 +01:00
Alex Rudenko
1f76cdda12
chore: replace rimraf with a helper in BrowserFetcher/Connector ( #9890 )
2023-03-21 13:41:56 +01:00
Alex Rudenko
f1488b6c3a
chore: replace rimraf in tests with a helper with retries ( #9888 )
2023-03-21 11:39:15 +01:00
Nikolay Vitkov
36c029b38d
fix: waitForNavigation issue with aborted events ( #9883 )
2023-03-21 10:22:57 +01: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
cb079378bb
chore: add BiDi support for SetContent ( #9878 )
2023-03-20 14:00:13 +01:00
Nikolay Vitkov
9ccde6ebf5
chore: added * pattern for test expectations ( #9870 )
2023-03-20 10:59:50 +01:00
Alex Rudenko
aa7c475461
test: add a few regressed selectors ( #9875 )
2023-03-17 12:55:39 +01:00
jrandolf
9f9394ca42
chore: use parsel ( #9865 )
2023-03-16 14:41:38 +01:00
Nikolay Vitkov
16b39de5ca
chore: extract HTTP prep for BiDi network module ( #9840 )
2023-03-15 17:51:34 +01:00
Nikolay Vitkov
4351e0de9e
chore: fix Actions Node version to LTS ( #9859 )
2023-03-15 13:59:42 +01:00
Nikolay Vitkov
17c650b6d1
chore: prefer use of fs/promise to utils/promisify ( #9848 )
...
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2023-03-14 18:30:41 +01:00
jrandolf
dd16ecae03
chore: use custom tokenizer ( #9837 )
2023-03-14 10:13:23 +01:00
jrandolf
9044609be3
fix: sort elements based on selector matching algorithm ( #9836 )
2023-03-13 16:11:16 +01:00
Nikolay Vitkov
175362c048
chore: add BiDi for goto
navigation ( #9795 )
2023-03-10 15:59:02 +00:00
Alex Rudenko
5bb41e1c11
chore: restore rimraf in test code ( #9823 )
2023-03-10 10:37:14 +01:00
jrandolf
364b23f8b5
fix: update dependencies ( #9781 )
2023-03-06 13:43:37 +01:00
jrandolf
2123f809e8
chore: remove rimraf ( #9775 )
2023-03-06 11:33:38 +01:00
jrandolf
f84873c121
chore: support commas in P selectors ( #9769 )
2023-03-06 10:56:52 +01:00
Nikolay Vitkov
3db7d55d26
chore: remove BigInt exists checks ( #9744 )
2023-02-24 19:26:29 +01:00
Nikolay Vitkov
9910aae2f7
chore: Fix BiDi session.status Param type ( #9723 )
2023-02-21 19:16:07 +00:00
jrandolf
84845e4901
chore: implement operations ( #9717 )
2023-02-21 11:12:27 +01:00
Nikolay Vitkov
9b54365df5
chore: Add Page.Console event to BiDi ( #9700 )
2023-02-20 13:00:29 +01:00
Nikolay Vitkov
eefe9583d0
chore: Add EsLint rule import/order ( #9685 )
2023-02-15 15:09:31 -08:00
jrandolf
2b3cf3ace9
chore: implement P queries ( #9639 )
2023-02-15 10:42:32 -08:00
jrandolf
e8f25e403f
refactor: custom query handlers and global bindings ( #9678 )
2023-02-15 07:33:18 -08:00
Nikolay Vitkov
0c85c0611c
chore: Implement JSHandle for BiDi ( #9660 )
2023-02-15 10:29:18 +00:00
jrandolf
56f99f7b10
refactor: migrate to iterator-based query handlers ( #9676 )
2023-02-14 13:31:30 -08:00
Henrik Skupin
404839d175
Refactor test expectation status for recent Firefox Nightly builds ( #9642 )
2023-02-10 12:45:40 +01:00
Nikolay Vitkov
b8ea891ab8
chore: Extract JSHandle to API ( #9632 )
2023-02-09 18:04:06 +01:00
Henrik Skupin
e14cf7ebac
fix: update test expectations for next Firefox Nightly changes ( #9635 )
2023-02-09 12:50:42 +01:00
Rafael Martins
ddb0cc174d
fix: page.goto
error throwing on 40x/50x responses with an empty body ( #9523 ) ( #9577 )
...
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2023-02-06 09:40:51 +00:00
charlieinitialdigital
c8bb11adfc
feat: add touchstart, touchmove and touchend methods ( #9622 )
2023-02-03 10:59:21 +00:00
Nikolay Vitkov
abcc1756dd
chore: Add BiDi Page.evaluate ( #9609 )
2023-02-02 15:14:28 +01:00
Rafael-Martins
f12f27e1eb
docs: clarify the waitForXPath return type ( #9541 ) ( #9583 )
2023-02-01 15:23:32 +00:00
jrandolf
050a7b0624
fix: atomically get Puppeteer utilities ( #9597 )
2023-01-27 11:58:40 -08:00
Alex Rudenko
6edd996768
fix(revert): use LazyArg for puppeteer utilities ( #9590 )
...
Reverts puppeteer/puppeteer#9575
2023-01-26 09:50:06 +01:00
jrandolf
496658f029
fix: use LazyArg for puppeteer utilities ( #9575 )
...
This PR fixes the following edge case:
- `const oldPromise = world.puppeteerUtil`.
- setContext occurs but context is immediately destroyed, i.e.
`world.#puppeteerUtil === oldPromise` is not resolved.
- clearContext occurs due to destruction, i.e. `world.#puppeteerUtil` is
replaced (`world.#puppeteerUtil !== oldPromise`).
- `oldPromise` never resolves.
2023-01-26 08:56:33 +01: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
Kyrylo
3e80667048
chore: use named import for devtools-protocol module ( #9511 )
...
<!-- Thanks for submitting a pull request! Please provide enough
information so that others can review your pull request. -->
**What kind of change does this PR introduce?**
types fix
**Did you add tests for your changes?**
No
**If relevant, did you update the documentation?**
Not relevant
**Summary**
I am updating `import`s of `devtools-protocol` to always use named
import instead of the default.
For some reason, typescript doesn't understand when it is imported as
default.
```
node_modules/puppeteer-core/lib/esm/puppeteer/common/TargetManager.d.ts:23:59 - error TS2694: Namespace '"/Users/kyrylo/pacakge/node_modules/puppeteer-core/node_modules/devtools-protocol/types/protocol"' has no exported member 'Target'.
23 export declare type TargetFactory = (targetInfo: Protocol.Target.TargetInfo, session?: CDPSession) => Target;
~~~~~~
Found 1 error in node_modules/puppeteer-core/lib/esm/puppeteer/common/TargetManager.d.ts:23
```
**Does this PR introduce a breaking change?**
No
<!-- If this PR introduces a breaking change, please describe the impact
and a migration path for existing applications. -->
**Other information**
I am updating `import`s of `devtools-protocol` to always use named
import instead of the default.
2023-01-17 11:34:57 +00:00