playwright-dotnet: 0.142.0 - Error -> chrome_elf.dll missing
Hey there, me again (sorry) 😃
I just updated the Nuget package to latest version (0.142.0) but now when I try to generate a pdf, I get a PlaywrightSharpException: Host system is missing dependencies! exception
I am using it like so:
await Playwright.InstallAsync();
using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Chromium.LaunchAsync(new LaunchOptions
{
Headless = true
});
var page = await browser.NewPageAsync();
await page.SetContentAsync(htmlContent, LifecycleEvent.Load);
var bytesResponse = await page.GetPdfAsync(null, 1, true, "<style>body {font-size: 12px;}</style>Test header template", "Test footer template", true, false, "", null,
null, null, new Margin { Bottom = "1in", Top = "2in" }, false);
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 39 (16 by maintainers)
All right, now hoping they won’t wait a month to get it merged as it sometimes happen -_-
Thanks for your help and have a great day! (Now I will go on their repo to put pressure on your PR to be merged ahah 😃 )
@lvmajor as soon as my PR gets merged upstream I’ll ship a v0.142.1 version with this fix.
Could you try this? playwright-driver-win.exe.zip
@lvmajor that’s true. I know what’s going on. I’ll get you something 😃
It’s being generated in runtime. It’s embedded inside the dll. It will download the appropriate driver for the platform it’s running.
Ops 😂
playwright-driver-win.exe.zip
@lvmajor yeah, the
usingshould do the trick.I have the same problem and I came here to see if it was reported, I arrived a few minutes late ^^ I’m on the exact same Windows 10 version
I’m trying to use PlaywrightSharp in an aspnet core project. When I run it from Kestrel, it works perfectly, but when I use it in IIS Express or IIS I have the error.
Windows 10