public static void ClearTextBox(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Clear();
 }
 public static void ClickButton(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
 public static void TypeInTextBox(By locator, string text)
 {
     _element = GenericHelper.GetElement(locator);
     _element.SendKeys(text);
 }
 public static void SelectByIndex(By locator, int index)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByIndex(index);
 }
 public static void SelectByVisibleText(By locator, string text)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByText(text);
 }
        //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);
 }