-1

I need to parse the page source as rendered by IE.

I can use the following simple code to open an IE to a URL.

(The BrowserWinodw type is from the Visual Studio Coded UI test framework.)

BrowserWindow bw = BrowserWindow.Launch(url);

How to get the page source from the IE window?

Thanks!

smwikipedia
  • 61,609
  • 92
  • 309
  • 482

1 Answers1

0

I have figured out a way to do it. Use the IHtmlDocument2 interface. With reference to this article: http://support.microsoft.com/kb/292485

I will share my code snippet shortly.

smwikipedia
  • 61,609
  • 92
  • 309
  • 482