Hack Forums
[Java] Need trick or script to auto click on a button on a webpage - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] Need trick or script to auto click on a button on a webpage (/showthread.php?tid=5573637)



Need trick or script to auto click on a button on a webpage - shyamsss - Mar 12, 2017

i want to auto click on a button on a webpage
like amazon lightning deals when live, i want it will automatic added to cart by auto click trick or script

when amazon lightning deals live it shows - Add to cart button


* - _wind - Mar 12, 2017

No one's going to code it for you, but take a look into Selenium or JUnit. Good luck if you're going to code it yourself.


* - kamika$e - Mar 14, 2017

it'll be quite easy if you use the selenium web driver framework. the documentation of selenium (found here),


* - Mohinder - Mar 15, 2017

(Mar 12, 2017 09:06 PM)shyamsss Wrote:  i want to auto click on a button on a webpage
like amazon lightning deals when live, i want it will automatic added to cart by auto click trick or script

when amazon lightning deals live it shows - Add to cart button

Does this have to be written in Java? Because you could use other languages, for example Python, to solve this problem.


* - Conscious - Mar 15, 2017

(Mar 15, 2017 05:40 AM)Mohinder Wrote:  Does this have to be written in Java? Because you could use other languages, for example Python, to solve this problem.

My question as well ✌


* - Mohinder - Mar 15, 2017

(Mar 15, 2017 05:41 AM)Conscious Wrote:  My question as well ✌

Yeah, he might want to implement this in something bigger. But even then you could use Python for it.

Anyway, If you want to do it with Java: do as said above. Selenium will do the trick.

If you want to use another language like Python, you can send me a PM and I will help you with it.