The documentation does not explain what a 'Target' is
See original GitHub issueThe Puppeteer API documentation lists a type called a ‘Target’, but does not explain what it is and how it relates to BrowserContexts/Pages/Frames/etc. In particular it is missing from the diagram in the Overview, and there is no explanation of its lifecycle - e.g. you can use page.target() to get a target related to a page, but how long does it live for? If you page.goto() another URL, do you need to fetch a new Target? etc
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Where to find the list of defined CMake properties for Boost?
I would like to check what properties find_package(Boost REQUIRED CONFIG COMPONENTS unit_test_framework ) defines when called, but I can't find ...
Read more >Use cases for combined documentation of multiple targets in ...
Hello everyone. I would like kick off a discussion about linking between documentation for multiple targets and hosting documentation for ...
Read more >GNU make
GNU make. This file documents the GNU make utility, which determines automatically which pieces of a large program need to be recompiled, ...
Read more >Go Doc Comments - The Go Programming Language
Go Doc Comments. “Doc comments” are comments that appear immediately before top-level package, const, func, type, and var declarations with no intervening ...
Read more >describe-maintenance-windows-for-target - AWS Documentation
describe-maintenance-windows-for-target is a paginated operation. Multiple API calls may be issued in order to retrieve the entire data set of results.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Presumably there would still be some way of getting a CDP connection?
Target is a CDP-specific concept that I think should not be directly exposed to the end-users but it unfortunately was. There is some documentation here https://github.com/aslushnikov/getting-started-with-cdp/blob/master/README.md#targets--sessions but, generally, I think we should try to deprecate the target API instead of documenting it better.