Skip to content

[Bug]:  #505

Open
Open
@shoaibwaqar665

Description

@shoaibwaqar665

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

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