public static void ExecuteAjax <T>(this IEntityButtonContainer <T> container, ExecuteSymbol <T> symbol, bool consumeAlert = false) where T : Entity { container.WaitReload(() => { container.OperationClick(symbol); if (consumeAlert) { container.Selenium.ConsumeAlert(); } }); }
public static void Execute <T>(this IEntityButtonContainer <T> container, ExecuteSymbol <T> symbol, bool consumeAlert = false, bool checkValidationErrors = true) where T : Entity { container.WaitReload(() => { container.OperationClick(symbol); if (consumeAlert) { container.Element.GetDriver().CloseMessageModal(MessageModalButton.Yes); } }); var vs = container as IValidationSummaryContainer; if (checkValidationErrors && vs != null) { AssertNoErrors(vs); } }