Home > front end >  How to automatically click of a button
How to automatically click of a button

Time:09-27

Do a web page, the nested one another page, how can let this page automatically click nested,

Click this button,


Is a web page has a button, & lt; The button name="login" id="login" type="button" & gt; Login & lt;/button>
How can I open this page, click this button to automatically.

CodePudding user response:

Don't cross domain can use the
Document. The getElementById (" id ") at the iframe. ContentWindow. Document. The getElementById (" login "). Click ();

Cross-domain couldn't
  • Related