Beispiel #1
0
        public bool VerifyModeOfTravel(List <string> modeOfTravels)
        {
            List <string>       currentModeOfTravels = new List <string>();
            IList <IWebElement> optionElements       = _floodFillCombobox.FindElements(SimsBy.CssSelector("option"));

            foreach (IWebElement el in optionElements)
            {
                currentModeOfTravels.Add(el.GetText());
            }
            currentModeOfTravels.Remove("");
            currentModeOfTravels.Sort();
            modeOfTravels.Sort();
            return(SeleniumHelper.DoesListItemEqual(currentModeOfTravels, modeOfTravels));
        }