-
Notifications
You must be signed in to change notification settings - Fork 293
Description
Version
1.57
Steps to reproduce
Example steps (replace with your own):
- Clone my repo at https://github.com//example
- dotnet run Program.cs
- You should see the error come up
Expected behavior
May I ask, I used Playwright 1.57 in NetCore 8.0, and the controller wrote an interface. Then, when calling the interface in Docker to access the Baidu website, an error occurred. The error message is as follows:
"stackTrace": " at Microsoft.Playwright.Helpers.Driver.GetExecutablePath() in //src/Playwright/Helpers/Driver.cs:line 90\n at Microsoft.Playwright.Transport.StdIOTransport.GetProcess(String driverArgs) in //src/Playwright/Transport/StdIOTransport.cs:line 115\n at Microsoft.Playwright.Transport.StdIOTransport..ctor() in //src/Playwright/Transport/StdIOTransport.cs:line 45\n at Microsoft.Playwright.Playwright.CreateAsync() in //src/Playwright/Playwright.cs:line 42\n at dy.fetch.net.Controllers.PlayController.RunPlaywright()
It seems that the drive path was not found. My dockerfile is very simple.
FROM mcr.microsoft.com/playwright/dotnet:v1.57.0-jammy
WORKDIR /app
EXPOSE 8080
COPY . .
#Launch the application (core: enable. NET to automatically load Playwright driver)
ENTRYPOINT ["dotnet", "mypro.dll"]
Actual behavior
Additional context
No response
Environment
- Operating System: [Ubuntu 22.04]
- CPU: [arm64]
- Browser: [All, Chromium, Firefox, WebKit]
- .NET Version (TFM): [net8.0]
- Other info: