Exemple #1
0
 public static IList <string> AllDropdownMenuItem(By locator)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     return(_select.Options.Select((x) => x.Text).ToList());
 }
Exemple #2
0
 public static void SelectElementByIndex(By locator, int index)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByIndex(index);
 }
Exemple #3
0
 public static void SelectElementByValue(By locator, String indexValue)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByText(indexValue);
 }
Exemple #4
0
 public static void ClicRadiokButton(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
Exemple #5
0
 public static bool IsButtonEnabled(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     return(_element.Enabled);
 }
Exemple #6
0
 public static void CheckCheckBox(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
Exemple #7
0
 public static void ClearText(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Clear();
 }
Exemple #8
0
 public static void SendText(By locator, string text)
 {
     _element = GenericHelper.GetElement(locator);
     _element.SendKeys(text);
 }