我想抓取角度网站 - https://v16.angular.io/docs我已经为此编写了代码
var playwright = await Playwright.CreateAsync();
var browser = await playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions { Headless = true });
var page = await browser.NewPageAsync();
await page.GotoAsync("https://v16.angular.io/docs");
// Wait for the page to load fully
await page.WaitForSelectorAsync("body");
var content = await page.ContentAsync();
Console.WriteLine(content);
await browser.CloseAsync();
但它抛出错误“可执行文件不存在于 C:\Users\Vinit\AppData\Local\ms-playwigh