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); }
public bool IsButtonChosen(IWebElement button) { return(Acts.GetAttribute(button, "class").Contains("pressed")); }
public bool IsGroupChosen(IWebElement group) { return(Acts.GetAttribute(group, "class").Contains("chosen")); }