@Override public boolean cashDrawerExists(CashDrawer drawer) { commonActions.navigateTo(NavMenuLink.CASH_DRAWER); commonActions.selectContentFrame(); if (session.existsNow(CashDrawerLocators.verifyRow(drawer))) { return true; } return false; }
@Override public void updateCashDrawer(String nameOfCashDrawerToUpdate, CashDrawer drawer) { commonActions.navigateTo(NavMenuLink.CASH_DRAWER); commonActions.selectContentFrame(); session.click(CashDrawerLocators.getEditButton(nameOfCashDrawerToUpdate)); setFields(drawer); session.click(SAVE_BTN); waits.waitForPageLoad(); session.click(BACK_BTN); waits.waitUntilVisible(CashDrawerLocators.verifyRow(drawer)); }
@Override public void addCashDrawer(CashDrawer drawer) { commonActions.navigateTo(NavMenuLink.CASH_DRAWER); commonActions.selectContentFrame(); session.click(NEW_CASH_DRAWER_LNK); setFields(drawer); session.click(SAVE_BTN); waits.waitForPageLoad(); session.click(BACK_BTN); waits.waitUntilVisible(CashDrawerLocators.verifyRow(drawer)); }