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

[Feature]: Offline deployment cannot specify a local Google Chrome. #482

Open
Xiaomajohn opened this issue Sep 4, 2024 · 1 comment
Open

Comments

@Xiaomajohn
Copy link

Offline deployment cannot specify a local Google Chrome.How can i do?
this is my code:
browser, _ := pw.Chromium.Launch(playwright.BrowserTypeLaunchOptions{
Channel: playwright.String("chrome"),
ExecutablePath: playwright.String("C:\Program Files\Google\Chrome\Application\chrome.exe"),
Headless: &head,
})
It prompts me that the browser cannot be found.

@canstand
Copy link
Collaborator

canstand commented Sep 4, 2024

You don't need ExcutablePath, specify the Channel and let Playwright find it automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants