//legend[text()='Demographic Information']

        public static bool IsPageTitlePresent(string title)
        {
            return(GenericHelper.GetElements(By.XPath("//legend[contains(.,'" + title + "')]")).Count > 0);
        }
 public static bool IsErrorMsgPresent(string message)
 {
     return(GenericHelper.GetElements(By.XPath("//li[contains(.,'" + message + "')]")).Count > 0);
 }