I have a code and I want it to wait somewhere in the middle before going forward. After the WebBrowser1.Document.Window.DomWindow.execscript(“checkPasswordConfirm();”,”JavaScript”) I want it to wait .5 seconds and then do the rest of the code.
WebBrowser1.Document.Window.DomWindow.execscript("checkPasswordConfirm();","JavaScript") Dim allelements As HtmlElementCollection = WebBrowser1.Document.All For Each webpageelement As HtmlElement In allelements If webpageelement.InnerText = "Sign Up" Then webpageelement.InvokeMember("click") End If Next