开发者

Java open source to capture IE screensheet of page including scrolling [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

Us开发者_如何学Cing java is there open source code to open a website in internet explorer and capture a screenshot of the the whole length of the page including scrolling. Prefferably without seeing the browser appear on the screen. Need the image as a jpg or other image format, not as html


You could do this using Selenium APIs via Java:

http://seleniumhq.org/docs/05_selenium_rc.html


If you don't need the internet explorer to do this, you could use htmlunit to do the job:

HtmlUnit is a "GUI-Less browser for Java programs". It models HTML documents and provides an API that allows you to invoke pages, fill out forms, click links, etc... just like you do in your "normal" browser.

With htmlunit you can't take a snapshot in form of a jpeg, bug you can access the html code of the page which you can use instead.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜