Wait .5 seconds before continuing code VB.net

后端 未结 11 675
长发绾君心
长发绾君心 2021-02-05 04:25

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();\",\"JavaSc

11条回答
  •  野性不改
    2021-02-05 05:15

    I've had better results by checking the browsers readystate before continuing to the next step. This will do nothing until the browser is has a "complete" readystate

    Do While WebBrowser1.ReadyState <> 4
    ''' put anything here. 
    Loop
    

提交回复
热议问题