-
Notifications
You must be signed in to change notification settings - Fork 247
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] Exception thrown when using playwright in a single-file published program #2255
Comments
My two cents here. I don't think an end-to-end testing library needs to support single-file publishing. |
While that seems to be the initial reason Playwright was created it is used for more that that. I agree more with the description that is written in the README of this repo.
The linked issues show that there is a need for this type of publishing. |
Echoing @jeroenpelgrims comments. We're using Playwright for generating .png files as part of the Azure PlantUML project and it would be great if we could offer a single executable to users who wish to generate their own diagram sprites. |
@mxschmitt, the solution I was using was saving the driver in a shared location, |
@vmeganathan81 I bet so. |
Any ETA on this? |
Okay, let me test with latest version... thanks |
@jeroenpelgrims ... Are we going to resolve this or it would take more time? |
I'll try to test tomorrow. You verified it working on your end? EDIT:
Same result when publishing self contained or framework dependent. |
The solution @kblok mentioned is that merged and available with latest version? |
@mxschmitt any update on this open issue? |
Same issue here. We publish a single-file self-contained executable in a docker image, alongside the playwright stuff. When dealing with docker images that is significantly more convenient and eliminates many dependency problems (which is why it is such a popular approach in the docker world). But playwright conflicts with that deployment model. |
This issue still persist as of this comment (version 1.41.2) |
Starting from v1.44 (will be released in 3-4 weeks) this should be fixed: #2909 Browsers need to be installed via |
I still get this issue using v1.44 when running Docker build error:
Dockerfile:
How the program calls install at startup:
|
@matthewteeter we need a full repro, ideally via a small git repository. |
Here is a full repro: https://github.com/matthewteeter/Playwright1.44AotRepro
|
@matthewteeter AOT is not supported yet see here: #2714 |
I'll close this issue, since this issue (sigle-file published program) has been resolved. See #2255 (comment) for notes. |
Context:
Code Snippet
See code to reproduce this bug here: https://github.com/resurge/PlaywrightSingleFilePathError
Describe the bug
When publishing a project as single file and running the published executable the following error will be shown:
I would expect the program to behave the same way as a regular Debug or Release build.
But choosing to publish as a single file causes the behaviour of the executable to change. (And not work)
The following tickets were about the same bug but were closed because of no code to reproduce:
EDIT: Some other issues I found relating to this bug:
Not sure how the solution here works because
Playwright.CreateAsync
doesn´t accept parameters.This ticket is closed with comment "not supported", but no reason is given as to why not.
The text was updated successfully, but these errors were encountered: