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(); }
public void payAll() { payAllButton.assertClick(); }