Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Surfing/Browser Automation

I am in the process of creating a Java program that goes on the internet, signs in to website accounts and posts stuff. E.g. Run Program - > Tumblr - > Post "Helow World" -> Log Out of Tumblr.

I am currently using the Robot class to do this... http://download.oracle.com/javase/6/docs/api/java/awt/Robot.html

But looking ahead, I see a daunting future (web page updates will crash the program because it is based on coordinates, mouse clicks and keyboard.)

Is there someway I can do web browser automation? (e.g. surfing to websites, filling out forms etc.) (preferably in Java, python, C++ or php)

like image 202
Jimmy Huch Avatar asked Jun 15 '11 19:06

Jimmy Huch


People also ask

What is the tool for web browser automation?

The most popular open source web automation tool is Selenium. If you insist on using an open source tool, it should be on top of your list.


1 Answers

Selenium is a great option for exactly what you need. Not only can you write scripts for it in java (as well as many other languages) but you can install the browser plugin and have it record your actions to quickly learn it's syntax.

http://seleniumhq.org/

like image 76
cmwright Avatar answered Sep 23 '22 19:09

cmwright