public void selectAll() {
    invoiceMenuItem.mouseOver();
    invoicesListItem.assertClick();

    WebLocator waiting = new WebLocator().setText("Se încarcă...");
    ConditionManager conditionManager =
        new ConditionManager().add(new ElementRemovedSuccessCondition(waiting));
    Condition condition = conditionManager.execute();

    closePromo.click();

    if (seeInvoices.isElementPresent()) {
      seeInvoices.assertClick();
    }

    closePromo.click();

    selectAllButton.assertClick();
  }
Exemple #2
0
 /**
  * After the tab is set to active
  *
  * @return true or false
  */
 @Override
 public boolean setActive() {
   boolean activated = isActive();
   if (!activated) {
     WebLocator locator1 =
         new WebLocator(getPathBuilder().getContainer()).withElxPath(getTitlePath(false));
     WebLocator titleElement = locator1.withInfoMessage(getPathBuilder().getText() + " Tab");
     activated = titleElement.click();
   }
   if (activated) {
     LOGGER.info("setActive : " + toString());
   }
   return activated;
 }