Skip to content

Instantly share code, notes, and snippets.

@leomenezessz
Created October 5, 2018 04:09
Show Gist options
  • Save leomenezessz/4777e5de67f862ab37a4c04491c1b67b to your computer and use it in GitHub Desktop.
Save leomenezessz/4777e5de67f862ab37a4c04491c1b67b to your computer and use it in GitHub Desktop.
@BeforeClass
public static void setup() throws MalformedURLException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("app",new File("apps/SimpleCalculator.app"));
capabilities.setCapability("deviceName", "iPhone SE");
capabilities.setCapability("automationName" , "XCUITest");
appiumDriver = new IOSDriver<MobileElement>(new URL("http://localhost:4444/wd/hub") , capabilities);
calculatorScreen = new CalculatorScreen(appiumDriver);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment