public static IList <string> SelectElementByText(By locator) { select = new SelectElement(GenericHelper.GetElement(locator)); return(select.Options.Select((x) => x.Text).ToList()); }
public static void SelectElementByValue(By locator, string value) { select = new SelectElement(GenericHelper.GetElement(locator)); select.SelectByValue(value); }
public static void SelectElementByText(By locator, string text) { select = new SelectElement(GenericHelper.GetElement(locator)); select.SelectByText(text); }
public static void ClickCheckBox(By locator) { element = GenericHelper.GetElement(locator); element.Click(); }
public static void ClearTextBox(By locator) { element = GenericHelper.GetElement(locator); element.Clear(); }
public static void SendKeys(By locator, string text) { element = GenericHelper.GetElement(locator); element.SendKeys(text); }
public static bool IsButtonEnabled(By locator) { element = GenericHelper.GetElement(locator); return(element.Enabled); }
public static void ClickRadioButton(By locator) { element = GenericHelper.GetElement(locator); element.Click(); }