Exemplo n.º 1
0
 public static void SelectElementByText(By locator, string visibleText)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByText(visibleText);
 }
Exemplo n.º 2
0
 public static void CheckACheckBox(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
Exemplo n.º 3
0
 public static void SelectElementByIndex(By locator, int indextValue)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByIndex(indextValue);
 }
Exemplo n.º 4
0
 public static void ClickLink(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
Exemplo n.º 5
0
 public static void ClickRadioButton(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
Exemplo n.º 6
0
 public static void ClearText(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Clear();
 }
Exemplo n.º 7
0
 public static void SendText(By locator, string text)
 {
     _element = GenericHelper.GetElement(locator);
     _element.SendKeys(text);
 }
Exemplo n.º 8
0
 public static bool IsButtonEnable(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     return(_element.Enabled);
 }