Advertisement
dereksir

Untitled

Dec 5th, 2023 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. {
  2.     // Navigate to the website
  3.     driver.GoToUrl("https://nowsecure.nl");
  4.  
  5.     // Get the HTML content
  6.     var htmlContent = driver.ExecuteScript("return document.documentElement.outerHTML;") as string;
  7.  
  8.     // Print the HTML content
  9.     Console.WriteLine($"HTML Content:\n{htmlContent}");
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement