mirror of
https://github.com/appium/appium.git
synced 2026-01-15 22:59:52 -06:00
Updated path of app
This commit is contained in:
@@ -38,9 +38,9 @@ public class UICatalogTest {
|
||||
@BeforeMethod
|
||||
public void setUp() throws Exception {
|
||||
// set up appium
|
||||
File app = new File(
|
||||
"../../apps/TestApp/build/Release-iphonesimulator",
|
||||
"UICatalog.app");
|
||||
File classpathRoot = new File(System.getProperty("user.dir"));
|
||||
File appDir = new File(classpathRoot, "../../../apps/UICatalog/build/Release-iphonesimulator");
|
||||
File app = new File(appDir, "UICatalog.app");
|
||||
DesiredCapabilities capabilities = new DesiredCapabilities();
|
||||
capabilities.setCapability(CapabilityType.BROWSER_NAME, "iOS");
|
||||
capabilities.setCapability(CapabilityType.VERSION, "6.0");
|
||||
@@ -92,11 +92,11 @@ public class UICatalogTest {
|
||||
public void testScreenshot() {
|
||||
//make screenshot and get is as base64
|
||||
WebDriver augmentedDriver = new Augmenter().augment(driver);
|
||||
String screenshot = ((TakesScreenshot)augmentedDriver).getScreenshotAs(OutputType.BASE64);
|
||||
String screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.BASE64);
|
||||
|
||||
assertNotNull(screenshot);
|
||||
//make screenshot and save it to the local filesystem
|
||||
File file = ((TakesScreenshot)augmentedDriver).getScreenshotAs(OutputType.FILE);
|
||||
File file = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);
|
||||
assertNotNull(file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user