microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.47k stars 235 forks source link

Question on which playwright version supports .NET 8 #3011

Closed mahsadft closed 2 weeks ago

mahsadft commented 2 weeks ago

Please do not submit this issue.

mahsadft commented 2 weeks ago

Hi I have a service that is used to work on .Net 6 and playwright 35, since I upgraded it to .Net 8 it stopped working and I tried multiple versions of playWright such as 47,46,44 and still did not help Could you share your thoughts on this issus? Thanks

mxschmitt commented 2 weeks ago

Playwright for .NET supports netstandard2.0 which includes net6 and net8. Could you help us what you mean with "stopped working"? Ideally an error or a reproduction would help us a ton!

mahsadft commented 2 weeks ago

in our dockerfile we have this and we get build error: Step 1/6 : FROM mcr.microsoft.com/playwright-dotnet:v1.46.0 AS build manifest for mcr.microsoft.com/playwright-dotnet:v1.46.0 not found: manifest unknown: manifest tagged by "v1.46.0" is not found

Could you point me out to the most recent playWright version which supports .Net 8?

Thanks

mxschmitt commented 2 weeks ago

It should be playwright/dotnet - looks like our release notes on GitHub had a typo and used a - instead. I fixed it.

e.g. the following would work:

docker pull mcr.microsoft.com/playwright/dotnet:v1.46.0-jammy

I found a bug in our build pipeline for v1.47 (hence I'm using v1.46) - I recommend 1.46 in the meantime until we have it fixed.

mahsadft commented 2 weeks ago

Thank you for your quick and helpful response!