File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/com/bravostudiodev/selenium Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11group ' com.bravostudiodev'
2- version ' 2.2 '
2+ version ' 2.3 '
33
44apply plugin : ' maven'
55apply plugin : ' maven-publish' // task publishToMavenLocal
Original file line number Diff line number Diff line change 2323/**
2424 * Created by IgorV on 3.11.2016.
2525 */
26+ @ SuppressWarnings ("unused" )
2627public class SikuliScreen {
2728 private static final Logger LOGGER = Logger .getLogger (SikuliScreen .class .getName ());
2829
@@ -89,13 +90,16 @@ public String takeBase64Screenshot() throws IOException {
8990 return imageToBase64 (new DesktopScreenRegion ().capture ());
9091 }
9192
92- @ SuppressWarnings ("unused" )
93- public String takeBase64Screenshot (java .awt .Rectangle rc ) throws IOException {
93+ private String takeBase64Screenshot (java .awt .Rectangle rc ) throws IOException {
9494 ScreenRegion region = getScreenRegion (rc );
9595 LOGGER .info ("taking region screenshot" );
9696 return imageToBase64 (region .capture ());
9797 }
9898
99+ public String takeBase64Screenshot (String rcB64 ) throws IOException {
100+ return takeBase64Screenshot ((java .awt .Rectangle ) objectParse (rcB64 ));
101+ }
102+
99103 public String getScreenRectangle () {
100104 return objectSerialize (new DesktopScreen (0 ).getBounds ());
101105 }
You can’t perform that action at this time.
0 commit comments