public static void SelectDropdown(string tag, ElemType type, string value) { By by = SHelpers.FindBy(tag, type); new SelectElement(WebDrivers.Current.FindElement(by)).SelectByText(value); }
/// <summary> /// Sets the text of a given element and element type. /// </summary> /// <param name="tag"></param> /// <param name="type"></param> /// <param name="value"></param> /// <returns></returns> public static void SetText(string tag, ElemType type, string value) { By by = SHelpers.FindBy(tag, type); WebDrivers.Current.FindElement(by).SendKeys(value); }