using PuppeteerSharp; using System; class Program { static async Task Main(string[] args) { using var browserFetcher = new BrowserFetcher(); await browserFetcher.DownloadAsync(); await using var browser = await Puppeteer.LaunchAsync( new LaunchOptions { Headless = true }); await using var page = await browser.NewPageAsync(); await page.GoToAsync("https://httpbin.io/ip"); // Get the content of the page var pageContent = await page.GetContentAsync(); // Print the page content Console.WriteLine(pageContent); // Close the browser when done await browser.CloseAsync(); } }