Is there a way to automate a server so that it can open browser at a specific time and input a given email in a form then submit it.
Asked
Active
Viewed 225 times
2 Answers
0
Yes, It can be done by using headless browsers as suggested by @TNU, I have done it using Phantom Js, Now there are many ways you can do this.
Just write a javascript in a file and schedule the job using cron from terminal.
Or you can use casperjs another library written on top of phantom Js.
Or you can use Ghost driver for connecting to phantom headless browser to execute and schedule the scripts.

smali
- 4,687
- 7
- 38
- 60
-1
Yes, you could use headless browsers, which don't have user interfaces and can be controlled programmatically. Check this list for a list of Headless Browsers

SomeBruh
- 440
- 3
- 18
-
What about filling a form? – Mwangi Njuguna Oct 03 '17 at 10:09
-
You can use the browser's api to interact with DOM elements. Check this for [an exmaple using PhantomJS](https://stackoverflow.com/a/9256079/4585994) – SomeBruh Oct 03 '17 at 10:12