import { Target } from "https://deno.land/x/frugal@0.9.6/dep/puppeteer/mod.ts";
Constructors
new
Target(targetInfo: Protocol.Target.TargetInfo,
session: CDPSession | undefined,
browserContext: BrowserContext,
targetManager: TargetManager,
sessionFactory: (isAutoAttachEmulated: boolean) => Promise<CDPSession>,
ignoreHTTPSErrors: boolean,
defaultViewport: Viewport | null,
screenshotTaskQueue: TaskQueue,
isPageTargetCallback: IsPageTargetCallback,
Properties
_isPageTargetCallback: IsPageTargetCallback
Methods
_getTargetInfo(): Protocol.Target.TargetInfo
_session(): CDPSession | undefined
_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