import { Target } from "https://deno.land/x/pptr@1.2.0/mod.ts";
Constructors
new
Target(targetInfo: Protocol.Target.TargetInfo,
browserContext: BrowserContext,
sessionFactory: () => Promise<CDPSession>,
ignoreHTTPSErrors: boolean,
defaultViewport: Viewport | null,
Properties
private
_browserContext: BrowserContextprivate
optional
_defaultViewport: Viewportprivate
optional
_pagePromise: Promise<Page>private
_sessionFactory: () => Promise<CDPSession>private
_targetInfo: Protocol.Target.TargetInfoprivate
optional
_workerPromise: Promise<WebWorker>Methods
_targetInfoChanged(targetInfo: Protocol.Target.TargetInfo): void
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