Repetably clicking a button inside a web browser vb.net
How do i click a button, preform some if statements (if it matches, exit...) else keep looping (clicking the button)...How do i do this within the web browser control?
A normal loop won't work because the web browser executes the statement multiple times bef开发者_Go百科ore completing and i can't figure out how to make it loop until a condition is met without freezing the program.
Thanks
To prevent the GUI from freezing an Application.DoEvents helps the gui be more responsive in a loop.
I do not believe you can click an input button with the WebBrowser control (maybe with DOM, you could, but I couldn't answer that), however you can change the control's address within the mentioned loop you have.
精彩评论