Reputation: 2703
How can i wait for page inner element to complete ?
Tried:
while (webBrowser.IsBusy)
while (webBrowser.ReadyState != WebBrowserReadyState.Complete)
webBrowser_DocumentCompleted
but they all for the full page / url and not inner content.how can i wait for inner elements of the page to complete?
(that elements did't have names / id's)
Upvotes: 0
Views: 830
Reputation: 1351
In server-side code, you cannot make sure when the inner content will be ready or loaded. You have to use client-side scripts to decide on that. If you only want to wait for document fully loaded, you can use Jquery document ready function like;
$(document).ready(function() {
// do something
});
Upvotes: 1