playwright-sharp | NET version of the Playwright testing | Automation library
kandi X-RAY | playwright-sharp Summary
kandi X-RAY | playwright-sharp Summary
.NET version of the Playwright testing and automation library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of playwright-sharp
playwright-sharp Key Features
playwright-sharp Examples and Code Snippets
Community Discussions
Trending Discussions on playwright-sharp
QUESTION
I have created a .NET Core 3.1 nuget library that wraps functionality around Playwright-sharp v0.192.0. I'm using this library in a REST API (also .NET Core 3.1), and locally everything is working fine. The only requirement is that the host application also needs to reference Playwright-sharp in order to download the drivers correctly. This I can live with.
The problem arises when I try to run my REST API in Docker (linux). After installing the dependencies (libc6, libgdi etc) I get this exception:
...ANSWER
Answered 2021-Jun-03 at 01:25Finally had time to look into this again, and came up with a solution.
A couple of promising approaches using the playwrightsharp docker image (suggested here) just didn't work in my case. Still not sure exactly why, but I had to manually add all dependencies instead. Just make sure to match the playwright browser versions (npm i ..) to the Playwright Sharp NuGet package you're using (in my case 0.192.0):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install playwright-sharp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page