コード例 #1
0
 @Override
 public boolean cashDrawerExists(CashDrawer drawer) {
   commonActions.navigateTo(NavMenuLink.CASH_DRAWER);
   commonActions.selectContentFrame();
   if (session.existsNow(CashDrawerLocators.verifyRow(drawer))) {
     return true;
   }
   return false;
 }
コード例 #2
0
  @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));
  }
コード例 #3
0
  @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));
  }