Java – web surfing / browser automation

I'm creating a java program to surf the Internet, log in to my website account and publish content For example Run the program – > Tumblr – > publish "Hello world" – > exit 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 updates will crash the program because it is based on coordinates, mouse clicks and keyboard.)

Can I do web browser automation? (for example, browse websites, fill out forms, etc.) (preferably Java, python, C or PHP)

Solution

Selenium is the perfect choice for your needs You can not only script it in Java (and many other languages), but also install the browser plug-in and let it record your actions to quickly understand its syntax

http://seleniumhq.org/

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>