开发者

Java program to simulate user saving a page in Firefox

开发者 https://www.devze.com 2023-03-09 03:45 出处:网络
I want to emulate a user saving a webpage 开发者_JAVA技巧into a directory (after login) from an external program in Java.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消