Home > Software engineering >  Vb.net Webbrowser simulate click on the button
Vb.net Webbrowser simulate click on the button

Time:09-22

How to click the submit button below,

This not line, page has two submit buttons, I'm going to click on the submit button, the second

 For Each a WebBrowser1. In the Document. The GetElementsByTagName (" a ") 
If Anderson nnertext="submit" Then Anderson nvokeMember (" click ") : the Exit For
Next


CodePudding user response:

Click on the button on qq 2776478814 Vb.net Webbrowser simulation [

CodePudding user response:

Use the function in this page: http://bbs.csdn.net/topics/392078403
A word can
 getElementsByAttributes (WebBrowser1, "value='https://bbs.csdn.net/topics/submit") (0). Click 

CodePudding user response:

To write their own code with the following:
 For Each a WebBrowser1. In the Document. The GetElementsByTagName (" input ") 
Submitted an If Dr. Alue="https://bbs.csdn.net/topics/" Then a.c lick: Exit For
Next
  • Related