Skip to content

Commit

Permalink
Screenshot taking POC 11
Browse files Browse the repository at this point in the history
  • Loading branch information
UriahShaulMandel committed Aug 12, 2019
1 parent 8108233 commit 0a31a89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void actualTest() throws InterruptedException {
getInstrumentation().waitForIdleSync();
Thread.sleep(800);
try {
Screenshot.capture().setFormat(Bitmap.CompressFormat.PNG).setName(locales[localeIndex++].getLanguage()).process();
Screenshot.capture(mActivityTestRule.getActivity()).setFormat(Bitmap.CompressFormat.PNG).setName(locales[localeIndex++].getLanguage()).process();
localeIndex = localeIndex % locales.length;
} catch (IOException ex) {
throw new IllegalStateException(ex);
Expand Down

0 comments on commit 0a31a89

Please sign in to comment.