import { Target } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/Target.js";
Constructors
new
Target(targetInfo: Protocol.Target.TargetInfo,
browserContext: BrowserContext,
sessionFactory: () => Promise<CDPSession>,
ignoreHTTPSErrors: boolean,
defaultViewport: Viewport | null,
screenshotTaskQueue: TaskQueue,
isPageTargetCallback: IsPageTargetCallback,
Properties
_isPageTargetCallback: IsPageTargetCallback
Methods
_targetInfoChanged(targetInfo: Protocol.Target.TargetInfo): void
Get the browser context the target belongs to.
createCDPSession(): Promise<CDPSession>
Creates a Chrome Devtools Protocol session attached to the target.
type():
| "page"
| "background_page"
| "service_worker"
| "shared_worker"
| "other"
| "browser"
| "webview"
Identifies what kind of target this is.
url(): string