Skip to content

Commit

Permalink
Add frame.Timeout for internal parse use
Browse files Browse the repository at this point in the history
This timeout method is to be called from the mapping layer when parsing
options.
  • Loading branch information
ankur22 committed Jan 23, 2024
1 parent 7e4b794 commit 7565872
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,12 @@ func (f *Frame) textContent(selector string, opts *FrameTextContentOptions) (str
return gv.String(), nil
}

// Timeout will return the default timeout or the one set by the user.
// It's an internal method not to be exposed as a JS API.
func (f *Frame) Timeout() time.Duration {
return f.defaultTimeout()
}

// Title returns the title of the frame.
func (f *Frame) Title() string {
f.log.Debugf("Frame:Title", "fid:%s furl:%q", f.ID(), f.URL())
Expand Down

0 comments on commit 7565872

Please sign in to comment.