Message-ID: <1470310796.779436.1386333504861.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_779435_1344826775.1386333504861" ------=_Part_779435_1344826775.1386333504861 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Taking a screenshot of the desktop is quite simple. The class
takeDesktopScreenshot()takes a screenshot of the desktop = and returns it as a
saveDesktopAsPng(String)takes a screenshot of the desktop= and saves it as a PNG image using the file path passed as argument.
The following example takes a screenshot of the desktop when a test fail= s and saves the image as "myTest.png":=20