vendredi 26 février 2016

How can i exactly work with the setup of below code to capture the screenshots using AWS?

public boolean takeScreenshot(final String name) {
       String screenshotDirectory = System.getProperty("appium.screenshots.dir", System.getProperty("java.io.tmpdir", ""));
       File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
       return screenshot.renameTo(new File(screenshotDirectory, String.format("%s.png", name)));
   }

Aucun commentaire:

Enregistrer un commentaire