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.SelectByValue(VisibleText);
 }
 public static void SelectElementByValue(By locator, string valueTexts)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByValue(valueTexts);
 }
 public static void CheckedCheckBox(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Click();
 }
 public static void SelectElement(By Locator, int Index)
 {
     select = new SelectElement(GenericHelper.GetElement(Locator));
     select.SelectByIndex(Index);
 }
 public static void ClickRadioButton(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Click();
 }
Esempio n. 7
0
 public static void ClearTextBox(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Clear();
 }
Esempio n. 8
0
 public static void TypeInTextBox(By Locator, string Text)
 {
     element = GenericHelper.GetElement(Locator);
     element.SendKeys(Text);
 }
Esempio n. 9
0
 public static void ClickLink(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Click();
 }
Esempio n. 10
0
 public static bool IsButtonEnabled(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     return(element.Enabled);
 }