Re: Referencing Web Controls/Elements
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Fri, 17 Aug 2007 16:38:46 -0400
JonWayn <JonWayn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I am utilizing the WebBrowser control in a number of applications - I
am fairly new to it. I find a lot of the times that when I run my
codes, GetElementsByTagName (and other similar functions) returns
Nothing, as opposed to stepping through the same codes, in which case
it returns the elements that I need.
This suggests you are running your page processing too early, before the
page has fully loaded. When you step through the code, you slow the
program down and the page manages to load. Realize that the WebBrowser
loads pages asynchronously: wait until DocumentComplete event before
walking the page's DOM.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Prev by Date: Re: IHTMLDocument get_script failed ,the result is
- Next by Date: Re: IHTMLDocument get_script failed ,the result is
- Previous by thread: IDownloadManager interface and Website URL
- Next by thread: Re: Browser Helper Object for IE
- Index(es):
Relevant Pages
|
|