示例#1
0
        public PopupControl <T> MenuClickPopup <T>(string itemId, string prefix = "New")
            where T : Entity
        {
            MenuClick(itemId);
            //resultTable.Selenium.WaitElementDisapear(EntityContextMenuLocator);
            var result = new PopupControl <T>(this.resultTable.Selenium, prefix);

            result.Selenium.WaitElementPresent(result.PopupLocator);
            return(result);
        }
示例#2
0
        public PopupControl <ProcessEntity> DeleteProcessClick(OperationSymbol operationSymbol)
        {
            MenuClick(operationSymbol.KeyWeb());
            resultTable.Selenium.ConsumeAlert();

            var result = new PopupControl <ProcessEntity>(this.resultTable.Selenium, "New");

            result.Selenium.WaitElementPresent(result.PopupLocator);
            return(result);
        }
示例#3
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);
        }
示例#4
0
        public static void DeleteAjax <T>(this PopupControl <T> container, DeleteSymbol <T> symbol, bool consumeAlert = true)
            where T : Entity
        {
            container.OperationClick(symbol);
            if (consumeAlert)
            {
                container.Selenium.ConsumeAlert();
            }

            container.WaitNotVisible();
        }
示例#5
0
        public static PopupControl <T> ConstructFromPopup <F, T>(this IEntityButtonContainer <F> container, ConstructSymbol <T> .From <F> symbol, string prefix = "New")
            where T : Entity
            where F : Entity
        {
            container.OperationClick(symbol);

            var popup = new PopupControl <T>(container.Selenium, prefix);

            container.Selenium.WaitElementPresent(popup.PopupLocator);

            return(popup);
        }
示例#6
0
        public static PopupControl <AlertEntity> AlertCreateClick(this IWidgetContainer container)
        {
            container.Selenium.FindElement(container.WidgetContainerLocator().CombineCss(" .sf-alerts-toggler")).Click();

            By createLocator = container.WidgetContainerLocator().CombineCss(" a.sf-alert-create");

            container.Selenium.WaitElementVisible(createLocator);
            container.Selenium.FindElement(createLocator).Click();

            PopupControl <AlertEntity> result = new PopupControl <AlertEntity>(container.Selenium, "New");

            container.Selenium.WaitElementPresent(result.PopupLocator);
            return(result);
        }