public static void Delete <T>(this FrameModalProxy <T> container, DeleteSymbol <T> symbol, bool consumeAlert = true) where T : Entity { container.OperationClick(symbol); if (consumeAlert) { container.Selenium.CloseMessageModal(MessageModalButton.Yes); } container.WaitNotVisible(); }
public FrameModalProxy <T> ConstructFrom <F, T>(ConstructSymbol <T> .From <F> constructSymbol, bool shouldDisapear = false) where F : Entity where T : Entity { var lites = ResultTable.SelectedEntities(); var modal = Operation(constructSymbol).WaitVisible().CaptureOnClick(); var result = new FrameModalProxy <T>(modal); result.Disposing += okPressed => { if (shouldDisapear) { ResultTable.WaitNoVisible(lites); } else { ResultTable.WaitSuccess(lites); } }; return(result); }