public static IList <string> GetAllItem(By locator) { select = new SelectElement(GenericHelper.GetElement(locator)); return(select.Options.Select((x) => x.Text).ToList()); }
public static void SelectElement(By locator, string visibletext) { select = new SelectElement(GenericHelper.GetElement(locator)); select.SelectByText(visibletext); }
public static void SelectElementByValue(By locator, string valueTexts) { select = new SelectElement(GenericHelper.GetElement(locator)); select.SelectByValue(valueTexts); }
public static void SelectElement(By locator, int index) { select = new SelectElement(GenericHelper.GetElement(locator)); select.SelectByIndex(index); }
public static bool IsButtonEnabled(By locator) { _element = GenericHelper.GetElement(locator); Logger.Info(" Checking Is Button Enabled "); return(_element.Enabled); }
public static void ClickButton(By locator) { _element = GenericHelper.GetElement(locator); _element.Click(); Logger.Info(" Button Click @ " + locator); }
public static void ClearTextBox(By locator) { element = GenericHelper.GetElement(locator); element.Clear(); Logger.Info($" Clear the Textbox @ {locator}"); }
public static void TypeInTextBox(By locator, string text) { element = GenericHelper.GetElement(locator); element.SendKeys(text); Logger.Info($" Type in Textbox @ {locator} : value : {text}"); }