Home > database >  How to automatically click a button on a website on daily basis
How to automatically click a button on a website on daily basis

Time:11-08

I aim to click a specific button on a specific website daily (Ex: at 12:00 PM).

This should be fully automatic, I mean, my computer may be on/off.

Could you please suggest a solution, idea of how to do so?

Note: I want to use JS.

Thanks.

CodePudding user response:

There is a name for that - Crawler. You can use the Puppeteer library to create a headless web browser and simulate any kind of action.

The production may be on a public server, like Heroku or Deta.

Puppeteer dev web documentation

CodePudding user response:

TestCafe (https://testcafe.io) is my tool of choice for this purpose. Once setup, the schedule can be automated with something like node-cron

CodePudding user response:

You can also use setInterval

setInterval(function(){ alert("Hello"); }, 8.64e 7);

this function will execute after every 24 hours.

  • Related