public static void SelectFromDropDownWithLabel(string label, string value)
        {
            var arrow = GenericHelper.GetElement(By.XPath(GetXpathUsingLabel(label)));

            JavaScriptExecutorHelper.ScrollElementAndClick(arrow);
            Thread.Sleep(1000);
            var list = GenericHelper.GetVisiblityOfElement(By.XPath(GetListElement(value)));

            list.Click();
            Thread.Sleep(1000);
        }
 public static void ClickButton(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
 public static void ClearTextBox(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Clear();
 }
 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);
 }