Пример #1
0
 public static IList <string> GetAllItem(By Locator)
 {
     select = new SelectElement(GenericHelper.GetElement(Locator));
     return(select.Options.Select((x) => x.Text).ToList());
 }
Пример #2
0
 public static void SelectElement(By Locator, string VisibleText)
 {
     select = new SelectElement(GenericHelper.GetElement(Locator));
     select.SelectByValue(VisibleText);
 }
Пример #3
0
 public static void SelectElementByValue(By locator, string valueTexts)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByValue(valueTexts);
 }
Пример #4
0
 public static void CheckedCheckBox(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Click();
 }
Пример #5
0
 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();
 }
Пример #7
0
 public static void ClearTextBox(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Clear();
 }
Пример #8
0
 public static void TypeInTextBox(By Locator, string Text)
 {
     element = GenericHelper.GetElement(Locator);
     element.SendKeys(Text);
 }
Пример #9
0
 public static void ClickLink(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Click();
 }
Пример #10
0
 public static bool IsButtonEnabled(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     return(element.Enabled);
 }