public static bool IsCheckboxSelected(By locator) { _element = GeneralclassHelper.getElement(locator); string CheckBoxstatus = _element.GetAttribute("agree"); if (CheckBoxstatus != null) { return(CheckBoxstatus.Equals("true") || CheckBoxstatus.Equals("checked")); } return(false); }
public static bool IsradioButtonSelected(By locator) { _element = GeneralclassHelper.getElement(locator); var RadioButtonstatus = _element.GetAttribute("checked"); if (RadioButtonstatus != null) { return(RadioButtonstatus.Equals("true") || RadioButtonstatus.Equals("checked")); } return(false); }
public static string GetButtontext(By locator) { _element = GeneralclassHelper.getElement(locator); //if (_element.GetAttribute("value") == null) //{ // return string.Empty; //} //else //{ // return _element.GetAttribute("value"); //} return(_element.GetAttribute("value") ?? string.Empty); }
public static void ClearTextBox(By locator) { element = GeneralclassHelper.getElement(locator); element.Clear(); }
public static void SendTextToTextbox(By locator, string text) { element = GeneralclassHelper.getElement(locator); element.SendKeys(text); }
public static void ClickLink(By locator) { _Element = GeneralclassHelper.getElement(locator); _Element.Click(); }
public static bool IsButtonenabled(By locator) { _element = GeneralclassHelper.getElement(locator); return(_element.Enabled); }
public static void SelectMenuButton(By locator) { _element = GeneralclassHelper.getElement(locator); _element.Click(); }
public static void ClickRadiobutton(By locator) { _element = GeneralclassHelper.getElement(locator); _element.Click(); }
public static void ClickCheckBox(By locator) { _element = GeneralclassHelper.getElement(locator); _element.Click(); }