Open
Description
Environments
- playwright-go Version: [e.g. v0.4201.1]
- Browser: [e.g. firefox]
- OS and version: [e.g. macOS / Windows 11/ Ubuntu 22.04]
Bug description
To Reproduce
Please provide a mini reproduction rather than just a description. For example:
package main
import "github.com/playwright-community/playwright-go"
func main() {
// ignore unnecessary error handling code
pw, _ := playwright.Run()
browser, _ := pw.Chromium.Launch()
context, _ := browser.NewContext()
page, _ := context.NewPage()
_, _ = page.Goto("https://playwright.dev")
_, err := page.PDF(playwright.PagePdfOptions{
Path: playwright.String("playwright-example.pdf"),
})
// should no error
if err != nil {
panic(err)
}
}
this code shows following error
could not start playwright: please install the driver (v1.45.1) and browsers first: %!w()
kindly fix this