发现一个抓取动态网页的好东东:   

Watij (pronounced wattage) stands for Web Application Testing in Java. Watij is a pure Java API created to allow for the automation of web applications. Based on the simplicity of Watir and enhanced by the power of Java, Watij automates functional testing of web applications through a real browser. Currently Watij supports automating Internet Explorer on Windows only. Future plans are in place to support others like Mozilla.

Just download Watij, unzip, and double-click on the launchWatijBeanShell.bat and you are ready to start scripting in the BeanShell Desktop console.

 how easy it is to script a search on Google:

IE ie = new IE();
ie.start("http://www.google.com");
ie.textField(name,"q").set("Watij");
ie.button("Google Search").click();

Now don’t stop here! Take a look at the Quick Start Guide and begin writing your Watij test scripts in test runners like JUnit or others like TestNG.

Note: Requires java version jdk 1.5. See the Quick Start page for more details.

评论
发表评论

您还没有登录,请登录后发表评论

sole
搜索本博客
最近加入圈子
存档
最新评论
  • HTTP头信息
    不知道是否所有的Web-server都对If-Modified-Since支持
    -- by sole
  • HTTP头信息
    staus cod :304 304: 客户端有缓冲的文档并发出了一个条件性的请 ...
    -- by sole