Beispiel #1
0
        public List <String> GetAvailableButtonsTitles()
        {
            IList <IWebElement> webElems = driver.FindElements(By.XPath("//div[@id='left-menu']//button"));
            List <String>       titles   = new List <String>();

            foreach (var item in webElems)
            {
                titles.Add(Acts.GetAttribute(item, "title"));
            }
            return(titles);
        }
Beispiel #2
0
 public bool IsButtonChosen(IWebElement button)
 {
     return(Acts.GetAttribute(button, "class").Contains("pressed"));
 }
Beispiel #3
0
 public bool IsGroupChosen(IWebElement group)
 {
     return(Acts.GetAttribute(group, "class").Contains("chosen"));
 }