public static NormalPage <T> OperationNormalPageNew <T>(this IEntityButtonContainer container, IOperationSymbolContainer symbol) where T : Entity { container.ButtonClick(symbol.Symbol.KeyWeb()); container.Selenium.Wait(() => { try { return(container.RuntimeInfo().IsNew); } catch { return(false); } }); return(new NormalPage <T>(container.Selenium, null)); }
public static PopupControl <T> OperationPopup <T>(this IEntityButtonContainer container, IOperationSymbolContainer symbol, string prefix = "New") where T : ModifiableEntity { container.ButtonClick(symbol.Symbol.KeyWeb()); var popup = new PopupControl <T>(container.Selenium, prefix); container.Selenium.WaitElementPresent(popup.PopupLocator); return(popup); }
public static void OperationClick <T>(this IEntityButtonContainer <T> container, IEntityOperationSymbolContainer <T> symbol) where T : Entity { container.ButtonClick(symbol.Symbol.KeyWeb()); }