question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The documentation does not explain what a 'Target' is

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
jribbenscommented, Sep 5, 2022

Presumably there would still be some way of getting a CDP connection?

1reaction
OrKoNcommented, Sep 5, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found