0

I want to make Mozilla to run as soon as my pc is on. when Mozilla is open it must be redirected to my internet service provider site and must click on a specific field in that site to enable my login. I am using Ubuntu 12.04. Is this kind of automation possible?

  • Does it have to be Mozilla, or will any browser work? You may be able to automate it with command-line tools, as described in http://unix.stackexchange.com/questions/11296/automating-web-requests-using-curl – JigglyNaga Jun 27 '16 at 10:15
  • any other browser. i need to login automatically and do further proceedings. – sysadmincrispy Jun 27 '16 at 10:39
  • @sysadmincrispy did my method helped you ? – Rahul Jun 27 '16 at 11:05
  • no it just open firefox and enters the site i need to login automatically and do some clicks at specified postions in webpage. – sysadmincrispy Jun 27 '16 at 11:12
  • once Mozilla is running, you can use xdotool to simluate keyboard and mouse actions. – meuh Jun 27 '16 at 15:52

2 Answers2

1

Upstart might do your job. Create a file $HOME/.config/upstart/firefox-with-yoururl.conf with following content:

start on desktop-start
stop on desktop-end

exec firefox <url>

Reference : http://ifdeflinux.blogspot.in/2013/04/upstart-user-sessions-in-ubuntu-raring.html

Rahul
  • 13,589
0

Assuming you know how to start a browser - I'd use Greasemonkey, it can be used to pressing buttons, clicking links and whatsoever the browser can do.

For Chrome there is a Tampermonkey - for the same purpose.

Putnik
  • 886