Open
Description
- playwright-go Version: [e.g. latest-v0.5001.0]
- Browser: [e.g. Chromium]
- OS and version: [e.g. Windows 11]
- golang version [1.23.6]
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)
}
}
What's the problem with this, that I can't even run examples