Skip to content

[Bug]: 2025/02/17 10:03:14 could not start playwright: please install the driver (v1.50.1) first: %!w(<nil>) exit status 1 #530

Open
@ctao233

Description

@ctao233
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions