Tag Archives: WebBrowser

VB.NET WebBrowser dialog popup automatic handling

A recent site visitor had a fairly simple requirement which involved crawling a specific web page and clicking a button. Pretty basic stuff. And then it happened… clicking that button produced a javascript “confirm()” dialog with OK and Cancel buttons. “Well this won’t be easy” I thought to myself. Just to ensure there wouldn’t be any other surprises, I continued along thro [Continue Reading]

Detecting completely loaded page using VB.Net WebBrowser including all frames

Something I depend on quite frequently is determining when a web page in a WebBrowser control has completely loaded, including all frames. If you’ve ever worked with this control and relied on the DocumentCompleted event, you may have come across the inconsistency with it when dealing with pages that contain HTML frames. The little snippet below does a very good job with detecting completely loaded pages usin [Continue Reading]