Hi everyone,

I want my program to check if "<div class="error_box"> Please try later. </div>" element has been found in WebBrowser1, if it has been found then "GoTo eend", if hasn't been found then "Application.DoEvents()".

This is my script, but it doesn't work as I desired:
Code:
        If WebBrowser1.Document.GetElementById("error_box").InnerText Then
            GoTo eend
        Else
            Application.DoEvents()
        End If
Thanks for help, I give reputation as always