tools.fastlane.screengrab.UiAutomatorScreenshotStrategy Java Examples
The following examples show how to use
tools.fastlane.screengrab.UiAutomatorScreenshotStrategy.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ScreenshotTest.java From firefox-echo-show with Mozilla Public License 2.0 | 5 votes |
@Before public void setUpScreenshots() { Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); targetContext = instrumentation.getTargetContext(); device = UiDevice.getInstance(instrumentation); // Use this to switch between default strategy and HostScreencap strategy Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy()); //Screengrab.setDefaultScreenshotStrategy(new HostScreencapScreenshotStrategy(device)); device.waitForIdle(); }
Example #2
Source File: ScreenshotTest.java From focus-android with Mozilla Public License 2.0 | 5 votes |
@Before public void setUpScreenshots() { Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); targetContext = instrumentation.getTargetContext(); device = UiDevice.getInstance(instrumentation); // Use this to switch between default strategy and HostScreencap strategy Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy()); //Screengrab.setDefaultScreenshotStrategy(new HostScreencapScreenshotStrategy(device)); device.waitForIdle(); }
Example #3
Source File: ScreenshotsTest.java From Emoji with Apache License 2.0 | 4 votes |
@Before public void setUp() { Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy()); }
Example #4
Source File: JUnit4StyleTests.java From itracing2 with GNU General Public License v2.0 | 4 votes |
@BeforeClass public static void beforeAll() { Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy()); }