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]: Setup path to driver in azure function #2032

Closed 12masta closed 2 years ago

12masta commented 2 years ago

Your question

I have Azure Function app on dotnet bindings. Locally everything works perfectly. After deploy I am unable to run it because of error:

_2022-02-28T13:42:06.482 [Error] Executed 'SignUpForTraining-QA' (Failed, Id=1d16ae56-cd75-4d45-aff1-c0f4c2786b4c, Duration=11ms)Driver not found: C:\home\site.playwright\node\win32x64\playwright.cmd

As you see driver is not found. I found a way to make it as part of deploy package. playwright.cmd is on place but on the different path:

Screenshot 2022-02-28 at 14 43 45

Is there is a way to set the path for driver manually? Maybe by some environment variable?

mxschmitt commented 2 years ago

Folding into https://github.com/microsoft/playwright-dotnet/issues/1842

We recommend Azure Container Apps instead.