-
Notifications
You must be signed in to change notification settings - Fork 240
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] Any plans to adapt to net8's AOT #2714
Comments
This seems not compatible with Playwrights architecture, since the expenzsivest part happens inside the browser or do you want to compile your app with AOT instead and our Library prevents you from doing that? |
Json serialization and deserialization , which does not work in.NET full AOT |
Can you provide us a repro in form of a repository of whats not working? |
Use selenium |
It is bad |
I can repro after setting: <PropertyGroup>
<PublishAot>true</PublishAot>
</PropertyGroup> on a new console project as per here and it produces:
|
I don't think it makes sense adding nativeaot to playwright.net (at least not yet). Playwright.net is a layer over the engine that run in node, and where most of the interesting stuff happens. Setting PublishAOT and actually publishing to native executable are two very different things. With the latter being blocked by:
|
you can try PuppeteerAot ,this library is support for aot |
thanks |
|
Can you provide selenium project url? |
|
Most of these issues are being actively worked on: https://devblogs.microsoft.com/dotnet/introducing-ms-test-runner/ |
@chenrensong Can you please help me understand why you want / need NativeAOT for web testing? What are the benefits we could see in Playwright, when most of the work is offloaded to node.js. Maybe I am missing something here :) |
Making the library trim-compatible is good future-proofing hygiene, and ensures consumers know which methods aren't trim- or AOT-safe. Would the maintainers accept PRs annotating the Playwright libraries for trimming and AOT? |
This might be my memory playing tricks on me, but when I first used Playwright many moons ago, I was under the impression that it was a more general purpose browser automation, which obviously ideal for testing web apps, but would also be a good fit for the puppeteer use-cases. For example generating images from web assets, turning HTLM into PDFs as part of an invoicing platform, etc... Today it's very clear on the Playwright website that this is a web testing library, in which case I agree it doesn't make practical sense to make it AOT friendly. |
The. net version of Puppeter or Playwright essentially implements network testing by calling the browser kernel. The purpose of AOT execution is because currently developing Maui Mac version applications or Avalonia applications that wish to use AOT for compilation when released, and if these libraries are used, errors will be reported |
Let us know what functionality you'd like to see in Playwright and what your use case is.
Do you think others might benefit from this as well?
Might benefit:
The text was updated successfully, but these errors were encountered: