Saturday 15 August 2015

.net - Webbrowser.document won't update -


I am trying to develop an app that has to contact the web page.

I have to first fill out a form and have it used Biltinl Vebbrovr to submit there is no problem

When you click on this form page is a separate HTML code (a On the second leg) loads from the same page. This document does not fire the event to be completed, and worse than that, this document item does not change. DocumentText item has the new code, displays exactly on the page form, but the document item still retains the old code. I can not click on the second button without the document.

So, 2 questions

Is there a way to force the document to load new HTML code, so can I just click it?

Is there a way to click on that button without using HTML?

  dim input as private sub login () Browser.Navigate ( "Website") docflag.WaitOne () docflag.Reset () HtmlElementCollection = document. Nothing for each item, as in the HtmlElement, select the item in the input. Select ID Case "Nick" before Ksetatibrit ( "value", Tibiyuesuaraiotekst) case "have" items Ksetativit ( "value", Tibeepas. Text) episode as "" Demokram source string = item. GetAttribute ("src") if src.IndexOf ("/ login.gif") & lt; & Gt; -1 Then login = item end if choose Next Connecut (True) Login. Invokmen ( "click") docflag.WaitOne () is docflag.Reset () 'msg (document.Body.OuterHtml) the message of the first page' msg (Document.documenttext) provides address of the actual page document. Getelimentbiaiaidi ( "identifier" + Tibisiogoigo. Text) Kvakmel ( "click") DocflagkWaitOne () as DocflagkReset () End Sub Private Sub Browser_DocumentCompleted (object sender, WebBrowserDocumentCompletedEventArgs e) handles Browser.DocumentCompleted document = Browser.Document docflag.Set () msg ​​( "Pejrgarda") end sub   

to add some code I read while trying to fix it I am using a thread while working with Webbrover I do not want it, but this is not a problem (I put it on a thread and there was no change in the document)

< P> Before use webbrowser.Navigate ("about: blank");

No comments:

Post a Comment