Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //..
- // Create a new page
- using var page = await browser.NewPageAsync();
- // Navigate to the target URL
- await page.GoToAsync("https://httpbin.io/ip");
- // Retrieve the page content
- var pageContent = await page.GetContentAsync();
- Console.WriteLine(pageContent);
- // Close the browser when finished
- await browser.CloseAsync();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement