Home > Software engineering >  How to use vb code to simulate click the corresponding line on a web page, check boxes appear to tic
How to use vb code to simulate click the corresponding line on a web page, check boxes appear to tic

Time:10-19

In using vb to do web page automatically fill out a form, meet with difficulties, for first aid.
On a web page, the mouse to click any line of the children's record of any position, the corresponding check box will appear to tick, using vb code, please how to do?
I use the elements of the click method, the program is not an error, but the web page is a check box corresponding reaction, does not appear to tick,

CodePudding user response:

Find the checkbox element, set its checked=true

CodePudding user response:

How to use vb code to simulate click the corresponding web page, the implementation

CodePudding user response:

No element of the checkbox, the check box is a picture

CodePudding user response:

reference mengxiangde reply: 3/f
no checkbox element, the check box is a a picture

The checkbox is input element, its type=the checkbox, find the input id or name
If all have no, just click the img element

CodePudding user response:

Choose attribute check is ENABLE

CodePudding user response:

Is all div elements, not input element, in each row of checkboxes form, only the div elements, its background background check box is the GIF images, I checked the, when you the mouse to click any cell, a row of the web is by changing the background check box cell of the position to display the checkbox, (background is a picture, have corrosive hook and the hook two pattern, horizontal alignment, by changing the x coordinate of the picture, to complete in the cell is half a part of the display tray (have to hook check box design) or show left half (corrosive hook check box design),)

CodePudding user response:

http://www.autohotkey.com

CodePudding user response:

The input element should be dynamically generated, can be accessed
  • Related