@Test public void testRemoveCurrency() throws InterruptedException { // Wait for activity doAction.waitForAndroidActivity(appActivity, 20); XeCurrencyActivity objXE = new XeCurrencyActivity(driver, Dictionary, Environment, Reporter); String currencyToRemove = "ZAR - South African Rand"; objXE.removeCurrency(currencyToRemove); }
@Test public void testSelectCurrency() throws InterruptedException { doAction.waitForAndroidActivity(appActivity, 20); XeCurrencyActivity objXE = new XeCurrencyActivity(driver, Dictionary, Environment, Reporter); String currency = "AUD"; objXE .selectCurrency(currency) .openCurrencyCalculator() .tapCurrencyCalcButton("1.0") .tapEqualsButton(); }
@Test public void testAddNewCurrency() throws InterruptedException { doAction.waitForAndroidActivity(appActivity, 20); XeCurrencyActivity objXE = new XeCurrencyActivity(driver, Dictionary, Environment, Reporter); AddCurrencyActivity objAddCurr = objXE.scrollToAddNewCurrency().clickAddNewCurrency(); doAction.waitForAndroidActivity(".activity.AddCurrency", 20); objAddCurr.searchAndAddCurrency("ZAR").backToMainActivity(); doAction.waitForAndroidActivity(appActivity, 20); }