Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: #505

Open
shoaibwaqar665 opened this issue Nov 7, 2024 · 1 comment
Open

[Bug]: #505

shoaibwaqar665 opened this issue Nov 7, 2024 · 1 comment
Labels
p2-bug Something isn't working

Comments

@shoaibwaqar665
Copy link

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

@shoaibwaqar665 shoaibwaqar665 added the p2-bug Something isn't working label Nov 7, 2024
@canstand
Copy link
Collaborator

The version of playwright-go you thought you were using is obviously different from the one you are actually using. The error message indicates that you are actually running v0.4501.x, not v0.4201.1. The minor version number corresponds to the upstream version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants