Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageWithOnError ¶
type PageWithOnError struct { rod.Page OnError func(p *PageWithOnError) // contains filtered or unexported fields }
func New ¶
func New(page *rod.Page, onErrorFunc func(p *PageWithOnError)) *PageWithOnError
New has all of the functions of a rod errorpage, but if you call WithTimeout, it will call OnError and close the errorpage if the timeout is reached.
func (*PageWithOnError) CancelTimeout ¶
func (p *PageWithOnError) CancelTimeout() *PageWithOnError
func (*PageWithOnError) WithTimeout ¶
func (p *PageWithOnError) WithTimeout(d time.Duration) *PageWithOnError
Click to show internal directories.
Click to hide internal directories.