Java program to simulate user saving a page in Firefox
I want to emulate a user saving a webpage 开发者_JAVA技巧into a directory (after login) from an external program in Java.
I found that this kind of things are usually done in testing suites such as Selenium or iMacros. Still, how could this be done in normal Java program?
Could I do it using DJnativeSwing?
You can perform the action with java.awt.Robot, which will really invoke Firefox. Or do you like to make a http-request with java? Did you think about images, videos, flash, javascript, cookies, referrer?
精彩评论