tags:

views:

53

answers:

2

Is there an easy way of automating clicking on a certain button on a website?

I'm trying to help someone in my company out, the guy basically stares a booking page the entire day, having to click on a single button to refresh the page. If new booking slots becomes available, then it will only be shown on the page on the page refreshes, which means, the guy needs to click on the button the entire day...

Is there a way of maybe automating this? cUrl? Ruby?

+4  A: 

If you just refresh the browser to make it refresh then you could try a reload plugin like https://addons.mozilla.org/en-US/firefox/addon/115/. If you actually have to click the button then you could put together a very simple greasemonkey( https://addons.mozilla.org/en-US/firefox/addon/748/ ) script which just simulates a mouse click. With jQuery it would be something like

$("#buttonid").click()

triggered by any one on a hundred timer plugins or setTimout.

stimms
The user actually needs to click on the button...
FaNIX
Note: This is a 3rd party website, so I don't have access to the source.
FaNIX
You can identify the button client-side, so yes you do have access to the source. You just can't alter it. With @stimms answer, you can create a plugin to find the button on the page and trigger it's click event.
Duracell
+1  A: 
sameera207