1

I'm developing an web application that monitor changes in other websites. I came across some of the websites and that contain load of Frame set and Frames.

I'm using the below code:

  var chromeOption = new ChromeOptions();
        chromeOption.AddArgument("--headless");
        Console.WriteLine("Getting into the Application");
        using (var driver = new ChromeDriver(chromeOption))
        {
            Console.WriteLine("Loading the Web Page");

            driver.Navigate().GoToUrl("http://www.juljensen.dk/");
            var htmltxt = driver.PageSource;
        }

The Page Source returns me:

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <title>Mr X. Consulting</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
</head>
<frameset cols="25%,50%,25%" frameborder="0">
  <frame src="border.html" />
  <frame src="jjc.html" />
  <frame src="border.html" />
</frameset>

The PageSource is not loading the frame source. I have searched a lot online, even here in vain but didn't get useful info.

My question is how can I load all the frames and get the whole page source like below (only from Inspect element from Chrome)

Page Source from Chrome Inspect Element

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.