Clicking all buttons using console

djsmiley2k

Well-known member
Registered
Joined
Jul 10, 2016
Messages
198
Points
18
I have html elements like that:
<button id="following_3789454032" type="button" class="mainButton btn btn-md btn-rotate followingHover unfollowMobile visible-md visible-lg btn-success followingButton" data-id="3789454032"><i class="fa fa-link"></i> Following</button>
it is repeating 100 times and I want to click all 100 of them using jquery/chrome console
What is the code for this?
In the other hands, if i want to click buttons in steps, time interval for each button is 3 seconds. How can I do this?
 

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
Pasting this code into your console

$(".mainButton.btn.btn-success.btn-md.btn-rotate.followingButton.followingHover.unfollowMobile.visible-md.visible-lg.btn-success.followingButton ").click();
And it will click all your buttons once. Try it and let me know if it works for you.
Hope it helps!
 
Newer Threads
Latest Threads
Similar Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top