in my webpage i want wait while when HTMLdoc.getElementById("gen__1007") is not nothing
How can i do this?
Do Until IE.Busy = False: DoEvents: Loop Do Until IE.ReadyState = 4: DoEvents: Loop theese are not working...
in my webpage i want wait while when HTMLdoc.getElementById("gen__1007") is not nothing
How can i do this?
Do Until IE.Busy = False: DoEvents: Loop Do Until IE.ReadyState = 4: DoEvents: Loop theese are not working...
Sub POPUP_CONTROL()
Dim MSG_DIV = ""
WEB_LOAD2.Text = ""
TIME = 0
Do
Application.DoEvents()
On Error Resume Next
MSG_DIV = WebBrowser1.Document.GetElementById("pb-popup-message").InnerText
On Error GoTo 0
System.Windows.Forms.Application.DoEvents()
WEB_LOAD2.Text = MSG_DIV
If TIME >= 20 Then GoTo CIK
Loop While MSG_DIV = ""
WEB_DURUM2.Text = "Loaded! "
Exit Sub
CIK:
MsgBox("NO INTERNET CONNECTION OR VERY SLOW " & vbLf & "TRY AGAIN LATER!" & vbLf, vbInformation, "ACR")
End Sub
Where could I be making mistakes in the codes I wrote?