From 0371beebbab2d316adc399dbc4e9922c8e4bae2a Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> Date: Tue, 6 Jun 2023 14:39:54 +0200 Subject: [PATCH] chore: $ and $$ BiDi support (#10318) --- docs/guides/query-selectors.md | 3 + .../puppeteer-core/src/api/ElementHandle.ts | 65 ++++++-- packages/puppeteer-core/src/api/Page.ts | 27 ++-- .../src/common/ElementHandle.ts | 73 +-------- packages/puppeteer-core/src/common/LazyArg.ts | 20 ++- packages/puppeteer-core/src/common/Page.ts | 52 +----- .../puppeteer-core/src/common/QueryHandler.ts | 7 +- .../src/common/bidi/BrowsingContext.ts | 18 +++ .../src/common/bidi/ElementHandle.ts | 8 + .../puppeteer-core/src/common/bidi/Frame.ts | 60 ++++++- .../src/common/bidi/JSHandle.ts | 9 +- .../puppeteer-core/src/common/bidi/Sandbox.ts | 115 +++++++++++++ .../src/common/bidi/Serializer.ts | 12 +- test/TestExpectations.json | 152 ++++++------------ test/assets/p-selectors.html | 23 +-- test/src/navigation.spec.ts | 58 +++++-- 16 files changed, 415 insertions(+), 287 deletions(-) create mode 100644 packages/puppeteer-core/src/common/bidi/Sandbox.ts diff --git a/docs/guides/query-selectors.md b/docs/guides/query-selectors.md index 731c372479f..5514046d930 100644 --- a/docs/guides/query-selectors.md +++ b/docs/guides/query-selectors.md @@ -79,6 +79,9 @@ Suppose we have the markup ``` +> Note: `