puppeteer-extends
Preparing search index...
PuppeteerPlugin
Interface PuppeteerPlugin
Base interface for puppeteer-extends plugins
interface
PuppeteerPlugin
{
cleanup
?:
()
=>
Promise
<
void
>
;
initialize
?:
(
options
?:
Record
<
string
,
any
>
)
=>
Promise
<
void
>
;
name
:
string
;
onAfterBrowserLaunch
?:
(
browser
:
Browser
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
;
onAfterNavigation
?:
(
page
:
Page
,
url
:
string
,
success
:
boolean
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
;
onBeforeBrowserClose
?:
(
browser
:
Browser
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
;
onBeforeBrowserLaunch
?:
(
options
:
any
,
context
:
PluginContext
,
)
=>
Promise
<
any
>
;
onBeforeNavigation
?:
(
page
:
Page
,
url
:
string
,
options
:
NavigationOptions
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
;
onBeforePageClose
?:
(
page
:
Page
,
context
:
PluginContext
)
=>
Promise
<
void
>
;
onError
?:
(
error
:
Error
,
context
:
PluginContext
)
=>
Promise
<
boolean
>
;
onPageCreated
?:
(
page
:
Page
,
context
:
PluginContext
)
=>
Promise
<
void
>
;
version
?:
string
;
}
Index
Properties
cleanup?
initialize?
name
on
After
Browser
Launch?
on
After
Navigation?
on
Before
Browser
Close?
on
Before
Browser
Launch?
on
Before
Navigation?
on
Before
Page
Close?
on
Error?
on
Page
Created?
version?
Properties
Optional
cleanup
cleanup
?:
()
=>
Promise
<
void
>
Optional
initialize
initialize
?:
(
options
?:
Record
<
string
,
any
>
)
=>
Promise
<
void
>
name
name
:
string
Optional
on
After
Browser
Launch
onAfterBrowserLaunch
?:
(
browser
:
Browser
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
Optional
on
After
Navigation
onAfterNavigation
?:
(
page
:
Page
,
url
:
string
,
success
:
boolean
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
Optional
on
Before
Browser
Close
onBeforeBrowserClose
?:
(
browser
:
Browser
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
Optional
on
Before
Browser
Launch
onBeforeBrowserLaunch
?:
(
options
:
any
,
context
:
PluginContext
)
=>
Promise
<
any
>
Optional
on
Before
Navigation
onBeforeNavigation
?:
(
page
:
Page
,
url
:
string
,
options
:
NavigationOptions
,
context
:
PluginContext
,
)
=>
Promise
<
void
>
Optional
on
Before
Page
Close
onBeforePageClose
?:
(
page
:
Page
,
context
:
PluginContext
)
=>
Promise
<
void
>
Optional
on
Error
onError
?:
(
error
:
Error
,
context
:
PluginContext
)
=>
Promise
<
boolean
>
Optional
on
Page
Created
onPageCreated
?:
(
page
:
Page
,
context
:
PluginContext
)
=>
Promise
<
void
>
Optional
version
version
?:
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
cleanup
initialize
name
on
After
Browser
Launch
on
After
Navigation
on
Before
Browser
Close
on
Before
Browser
Launch
on
Before
Navigation
on
Before
Page
Close
on
Error
on
Page
Created
version
puppeteer-extends
Loading...
Base interface for puppeteer-extends plugins