public bool IsHomeTabActive() { string className = HomeButton.FindElement(By.XPath("..")).GetAttribute("class"); if (className == "active") { return(true); } else { return(false); } }