File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
android-refimpl-app/app/src/androidTest/java/com/zoffcc/applications/trifa Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3535import androidx .test .filters .LargeTest ;
3636import androidx .test .rule .GrantPermissionRule ;
3737import androidx .test .runner .lifecycle .ActivityLifecycleMonitorRegistry ;
38+ import androidx .test .runner .screenshot .Screenshot ;
3839
3940import static androidx .test .InstrumentationRegistry .getTargetContext ;
4041import static androidx .test .core .graphics .BitmapStorage .writeToTestStorage ;
@@ -212,7 +213,7 @@ else if (cur_act.equals("SetPasswordActivity"))
212213 screenshot ("006" );
213214 wait_ (10 );
214215
215- screenshot ("007" );
216+ screenshot_full ("007" );
216217 wait_ (10 );
217218
218219 onView (withId (R .id .decline_button )).perform (click ());
@@ -250,7 +251,7 @@ private static void screenshot_full(final String num)
250251 {
251252 try
252253 {
253- writeToTestStorage (captureToBitmap ( onView ( isRoot ()) ), "test_" + num );
254+ writeToTestStorage (Screenshot . capture (). getBitmap ( ), "test_" + num );
254255 Log .i (TAG , "capture full screenshot: " + "test_" + num + ".png" );
255256 }
256257 catch (Exception e )
You can’t perform that action at this time.
0 commit comments