Ejemplo n.º 1
0
        public FilterOptionProxy AddFilter()
        {
            var newFilterIndex = NewFilterIndex();

            Selenium.FindElement(AddFilterButtonLocator).Click();

            FilterOptionProxy filter = new FilterOptionProxy(this, newFilterIndex);

            Selenium.WaitElementPresent(filter.OperationLocator);
            return(filter);
        }
Ejemplo n.º 2
0
        public FilterOptionProxy AddQuickFilter(int rowIndex, string token)
        {
            var newFilterIndex = Filters.NewFilterIndex();

            Selenium.FindElement(Results.CellLocator(rowIndex, token)).ContextClick();

            By quickFilterLocator = By.CssSelector("#sfContextMenu .sf-quickfilter");

            Selenium.WaitElementPresent(quickFilterLocator);
            Selenium.FindElement(quickFilterLocator).Click();

            FilterOptionProxy filter = new FilterOptionProxy(this.Filters, newFilterIndex);

            Selenium.WaitElementPresent(filter.OperationLocator);
            return(filter);
        }