예제 #1
0
        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));
        }
예제 #2
0
        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);
        }
예제 #3
0
 public static void OperationClick <T>(this IEntityButtonContainer <T> container, IEntityOperationSymbolContainer <T> symbol)
     where T : Entity
 {
     container.ButtonClick(symbol.Symbol.KeyWeb());
 }