playwright/tests/chromium
Ross Wollman 101662765c
api(cdp): newCDPSession accepts frames, too (#8157)
Without this, Playwright's CDP feature leaves unreachable
targets (namely OOPIFs).

This change allows for more advanced experimentation in user-land
without relying on out-of-band CDP connections and clients.

Now you can, for example, call `DOM.getDocument` on the
page OR main frame, observe there is an iframe node with
no `contentDocument` (i.e. OOPIF), make note of the referenced
`frameId`, and then iterate of page.frames() calling `Target.getInfo`
on each to link the Playwright Frame with the CDP `frameId` and
then recurse.

Relates #8113
2021-08-16 12:49:10 -07:00
..
oopif.spec.ts-snapshots test: roll to folio@0.4.0-alpha28 (#6918) 2021-06-04 20:54:58 -07:00
chromium.spec.ts chore: migrate connect/overCDP to options instead of params (#7606) 2021-07-22 16:55:23 +02:00
css-coverage.spec.ts test: cleanup tests and configs after last folio update (#6463) 2021-05-08 17:45:04 -07:00
js-coverage.spec.ts test: revert partly 8770c64 (#6740) 2021-05-25 17:10:43 +02:00
launcher.spec.ts chore: replace Registry api with Executable list (#7544) 2021-07-13 15:57:40 -07:00
oopif.spec.ts api(cdp): newCDPSession accepts frames, too (#8157) 2021-08-16 12:49:10 -07:00
session.spec.ts api(cdp): newCDPSession accepts frames, too (#8157) 2021-08-16 12:49:10 -07:00
tracing.spec.ts test: cleanup tests and configs after last folio update (#6463) 2021-05-08 17:45:04 -07:00