Пример #1
0
  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();
  }
Пример #2
0
Файл: Tab.java Проект: sdl/Testy
 /**
  * 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;
 }