Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 73563ba

Browse files
committed
Add page.Timeout for internal parse use
This timeout method is to be called from the mapping layer when parsing options.
1 parent 8d594a6 commit 73563ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: common/page.go

+6
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,12 @@ func (p *Page) TextContent(selector string, opts goja.Value) string {
11951195
return p.MainFrame().TextContent(selector, opts)
11961196
}
11971197

1198+
// Timeout will return the default timeout or the one set by the user.
1199+
// It's an internal method not to be exposed as a JS API.
1200+
func (p *Page) Timeout() time.Duration {
1201+
return p.defaultTimeout()
1202+
}
1203+
11981204
func (p *Page) Title() string {
11991205
p.logger.Debugf("Page:Title", "sid:%v", p.sessionID())
12001206

0 commit comments

Comments
 (0)