smitbmx / DemoPlaywrightASPNET48

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DemoPlaywrightASPNET48

Steps to reproduce:

  1. Open the solution in Visual Studio.
  2. Run the project (for example via F5).
  3. You'll see an exception: Driver not found: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\14c7fcac\6704b262\assembly\dl3\.playwright\node\win32_x64\playwright.cmd Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.Playwright.PlaywrightException: Driver not found: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\14c7fcac\6704b262\assembly\dl3\.playwright\node\win32_x64\playwright.cmd
Source error:

Line 13: public async Task<ActionResult> Index() Line 14: { Line 15: using (var playwright = await Playwright.CreateAsync()) Line 16: { Line 17: var browser = await playwright.Webkit.LaunchAsync();

image

Note:

The implementation with Playwright is only in the Index action of the HomeController class.

About


Languages

Language:JavaScript 95.7%Language:C# 2.3%Language:HTML 1.7%Language:CSS 0.2%Language:ASP.NET 0.1%