Skip to content

Commit

Permalink
Add setting downloadsPath in NewBrowserContext
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Oct 21, 2024
1 parent 44bb475 commit b6ab52c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/browser_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ func NewBrowserContext(
if err := b.AddInitScript(js.WebVitalInitScript); err != nil {
return nil, fmt.Errorf("adding web vital init script to new browser context: %w", err)
}
if err := b.setDownloadsPath(opts.DownloadsPath); err != nil {
return nil, fmt.Errorf("setting downloads path: %w", err)
}

return &b, nil
}
Expand Down

0 comments on commit b6ab52c

Please sign in to comment.