Skip to content

Commit

Permalink
fix(examples): bug in videos example: close page (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjohnstone authored Feb 20, 2021
1 parent 041b715 commit 355fba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/video/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func main() {
gotoPage("http://whatsmyuseragent.org")
gotoPage("https://github.com")
gotoPage("https://microsoft.com")
if err := page.Close(); err != nil {
log.Fatalf("failed to close page: %v", err)
}
fmt.Printf("Saved to %s\n", page.Video().Path())
if err = browser.Close(); err != nil {
log.Fatalf("could not close browser: %v", err)
Expand Down

0 comments on commit 355fba9

Please sign in to comment.