Exemple #1
0
        public FilterOptionProxy AddFilter()
        {
            var newFilterIndex = NewFilterIndex();

            Selenium.FindElement(AddFilterButtonLocator).Click();

            FilterOptionProxy filter = new FilterOptionProxy(this, newFilterIndex);

            Selenium.WaitElementPresent(filter.OperationLocator);
            return(filter);
        }
Exemple #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);
        }