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 unix.stackexchange.com/questions/11296/… – 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

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

|improve this answer|||||

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.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.