public static string GetButtonText(By locator) { element = GenericHelpers.GetElement(locator); if (element.GetAttribute("value") == null) { return(string.Empty); } else { return(element.GetAttribute("value")); } }
public static bool IsChecboxChecked(By locator) { element = GenericHelpers.GetElement(locator); string flag = element.GetAttribute("checked"); if (flag == null) { return(false); } else { return(flag.Equals("true") || flag.Equals("checked")); } }
public static void CheckedCheckbox(By locator) { element = GenericHelpers.GetElement(locator); element.Click(); }
public static void ClickLink(By locator) { element = GenericHelpers.GetElement(locator); element.Click(); }
public static void CheckedRadioButton(By locator) { element = GenericHelpers.GetElement(locator); element.Click(); }
public static void TypeInTextbox(By locator, string text) { element = GenericHelpers.GetElement(locator); element.Clear(); element.SendKeys(text); }
public static void ClearTextbox(By locator) { element = GenericHelpers.GetElement(locator); element.Clear(); }
public static bool IsButtonEnabled(By locator) { element = GenericHelpers.GetElement(locator); return(element.Enabled); }