abstractBrowserController <Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>
Hierarchy
- TypedEmitter<BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>>
- BrowserController
Index
Properties
Methods
Properties
activePages
browser
Browser representation of the underlying automation library.
browserPlugin
The BrowserPlugin
instance used to launch the browser.
id
isActive
lastPageOpenedAt
launchContext
The configuration the browser was launched with.
optionalproxyTier
The proxy tier tied to this browser controller.
undefined
if no tiered proxy is used.
optionalproxyUrl
The proxy URL used by the browser controller. This is set every time the browser controller uses proxy (even the tiered one).
undefined
if no proxy is used
totalPages
staticexternalinheriteddefaultMaxListeners
Methods
externalinheritedaddListener
Parameters
externalevent: U
externallistener: BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]
Returns this
close
Gracefully closes the browser and makes sure there will be no lingering browser processes.
Emits 'browserClosed' event.
Returns Promise<void>
externalinheritedemit
Parameters
externalevent: U
externalrest...args: Parameters<BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]>
Returns boolean
externalinheritedeventNames
Returns U[]
getCookies
Parameters
page: NewPageResult
Returns Promise<Cookie[]>
externalinheritedgetMaxListeners
Returns number
kill
Immediately kills the browser process.
Emits 'browserClosed' event.
Returns Promise<void>
externalinheritedlistenerCount
Parameters
externaltype: BROWSER_CLOSED
Returns number
externalinheritedlisteners
Parameters
externaltype: U
Returns BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U][]
externalinheritedoff
Parameters
externalevent: U
externallistener: BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]
Returns this
externalinheritedon
Parameters
externalevent: U
externallistener: BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]
Returns this
externalinheritedonce
Parameters
externalevent: U
externallistener: BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]
Returns this
externalinheritedprependListener
Parameters
externalevent: U
externallistener: BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]
Returns this
externalinheritedprependOnceListener
Parameters
externalevent: U
externallistener: BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]
Returns this
externalinheritedrawListeners
Parameters
externaltype: U
Returns BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U][]
externalinheritedremoveAllListeners
Parameters
externaloptionalevent: BROWSER_CLOSED
Returns this
externalinheritedremoveListener
Parameters
externalevent: U
externallistener: BrowserControllerEvents<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>[U]
Returns this
setCookies
Parameters
page: NewPageResult
cookies: Cookie[]
Returns Promise<void>
externalinheritedsetMaxListeners
Parameters
externaln: number
Returns this
The
BrowserController
serves two purposes. First, it is the base class that specialized controllers likePuppeteerController
orPlaywrightController
extend. Second, it defines the public interface of the specialized classes which provide only private methods. Therefore, we do not keep documentation for the specialized classes, because it's the same for all of them.