Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8263031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:57:36+00:00 2026-06-08T03:57:36+00:00

I use WebBrowser.Document.DomDocument and found that it has different DOM model that I can

  • 0

I use WebBrowser.Document.DomDocument and found that it has different DOM model that I can see in IE Debug Tool.

IE Debug Tool contains the valid actual DOM model while WebBrowser.Document.DomDocument doesn’t contain some elements added dynamically by JavaScript.

Actually the WebBrowser control displays all elements, even those that were added dynamically, but WebBrowser.Document.DomDocument contains outdated DOM model.

IE Debug Tool can display the actual modified DOM model at it’s current state, how to get the current DOM model using WebBrowser component?

There definitively should be a way to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:57:38+00:00Added an answer on June 8, 2026 at 3:57 am

    This question could use better documentation. But this is a pretty classic problem, it is a timing issue. You no doubt access the DomDocument property too early, typically you’d do so in the browser’s DocumentCompleted event. That’s roughly the time the javascript code starts executing. So you’ll get the version of the DOM before the changes made by the script.

    There’s no decent way to deal with the problem. Execution of Javascript is entirely asynchronous and there are no events to indicate any scripting code started or stopped running. The only decent thing you can do is “wait a while”, use a timer. Preferably repeatedly until you see a good indication from the DOM that the script is done making its changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that in a WebBrowser you can use Document.GetElementById to find an element
can I use the WebBrowser Control (available in C#) in Monodroid to create a
Can you use Chrome Web Browser webkit engine in WebBrowser control in WindowsForms?
How can I detect when a System.Windows.Forms.WebBrowser control has completed loading? I tried to
I have a webbrowser and I use DocumentComplete to read the current document from
I have a C# webbrowser that holds an html page that has several iframes.
am trying to convert this c# to vb.net that has a webbrowser control, but
Currently I use .Net WebBrowser.Document.Images() to do this. It requires the Webrowser to load
I have a C# Form with WebBrowser object. This object contains HTML Document. And
I have a webbrowser control which I navigate to an URL that contains this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.