Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using SeleniumUndetectedChromeDriver;
- class Program
- {
- static async Task Main()
- {
- using (var driver = UndetectedChromeDriver.Create(driverExecutablePath: await new ChromeDriverInstaller().Auto()))
- {
- // Navigate to the website
- driver.GoToUrl("https://nowsecure.nl");
- // Get the HTML content
- var htmlContent = driver.ExecuteScript("return document.documentElement.outerHTML;") as string;
- // Print the HTML content
- Console.WriteLine($"HTML Content:\n{htmlContent}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement