puppeteer/new-docs/puppeteer.target.md
Jack Franklin 086c08998b
chore: commit base new-docs (#5973)
This adds the new docs that are generated by API Extractor via TSDoc.
They are sparse because we do not yet use TSDoc in the codebase. This is
the starting point and from here we can work through all the different
classes and improve the documentation.
2020-06-04 15:56:45 +01:00

2.5 KiB

Home > puppeteer > Target

Target class

Signature:

export declare class Target 

Constructors

Constructor Modifiers Description
(constructor)(targetInfo, browserContext, sessionFactory, ignoreHTTPSErrors, defaultViewport) Constructs a new instance of the Target class

Properties

Property Modifiers Type Description
_browserContext BrowserContext
_closedCallback () => void
_defaultViewport Viewport
_ignoreHTTPSErrors boolean
_initializedCallback (x: boolean) => void
_initializedPromise Promise<boolean>
_isClosedPromise Promise<boolean>
_isInitialized boolean
_pagePromise Promise<Page>
_sessionFactory () => Promise<CDPSession>
_targetId string
_targetInfo Protocol.Target.TargetInfo
_workerPromise Promise<WebWorker>

Methods

Method Modifiers Description
_targetInfoChanged(targetInfo)
browser()
browserContext()
createCDPSession()
opener()
page()
type()
url()
worker()