Package org.uiautomation.ios.utils

Examples of org.uiautomation.ios.utils.JSONWireImage


          + " when the screenshot was take.The orientation returned : "
          + orientation + " isn't a valid orientation.");
    }

   try {
      JSONWireImage image = new InstrumentsGeneratedImage(source, o);
      String content64 = image.getAsBase64String();
      return content64;
    } catch (Exception e) {
      throw new WebDriverException(
          "Error converting " + source.getAbsolutePath() + " to a 64 encoded string "
          + e.getMessage(), e);
View Full Code Here


      if (screenshot) {
        TakeScreenshotService service = getNativeDriver().getScreenshotService();

        if (service instanceof InstrumentsAppleScreenshotService) {
          File source = ((InstrumentsAppleScreenshotService) service).getScreenshotFile();
          JSONWireImage image = new InstrumentsGeneratedImage(source, o);
          try {
            String content64 = image.getAsBase64String();
            value.put("screenshot", ImmutableMap.of("64encoded", content64));
          } catch (Exception e) {
            throw new WebDriverException(
                "Error converting " + source.getAbsolutePath() + " to a 64 encoded string "
                + e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.uiautomation.ios.utils.JSONWireImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.