Hi guys,
I want to automate rendering of some internal websites for reporting reasons.
More concretely the steps would be:
- navigate to an appropriate website;
- authenticate;
- navigate to the appropriate page;
- detect a particular tag (by ID or by class name);
- render it (or render the whole page and then extract the necessary part);
- create a .png or .jpeg and
- push it as a file to an external service for reporting.
I know I can do this with phantomJS, but I want to create a plugin for Jenkins
and the language for creating that is JAVA. It would be possible to write a wrapper
around phantomJS in JAVA, but maybe I could bypass that and use a webkit based
JAVA library. Which would be a more homogeneous approach.
QUESTION: is it possible to take screenshots headlesly in JCEF for particular parts of a document?
How would one go about doing that.