Пример #1
0
 public static IList <string> SelectElementByText(By locator)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     return(select.Options.Select((x) => x.Text).ToList());
 }
Пример #2
0
 public static void SelectElementByValue(By locator, string value)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByValue(value);
 }
Пример #3
0
 public static void SelectElementByText(By locator, string text)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByText(text);
 }
Пример #4
0
 public static void ClickCheckBox(By locator)
 {
     element = GenericHelper.GetElement(locator);
     element.Click();
 }
Пример #5
0
 public static void ClearTextBox(By locator)
 {
     element = GenericHelper.GetElement(locator);
     element.Clear();
 }
Пример #6
0
 public static void SendKeys(By locator, string text)
 {
     element = GenericHelper.GetElement(locator);
     element.SendKeys(text);
 }
Пример #7
0
 public static bool IsButtonEnabled(By locator)
 {
     element = GenericHelper.GetElement(locator);
     return(element.Enabled);
 }
Пример #8
0
 public static void  ClickRadioButton(By locator)
 {
     element = GenericHelper.GetElement(locator);
     element.Click();
 }