public static void ClickButton(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
     Logger.Info(" Button Click @ " + locator);
 }
 public static bool IsButtonEnabled(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     Logger.Info(" Checking Is Button Enabled ");
     return(_element.Enabled);
 }
 public static void ClearTextBox(By locator)
 {
     element = GenericHelper.GetElement(locator);
     element.Clear();
     Logger.Info($" Clear the Textbox @ {locator}");
 }
Exemple #4
0
 public static void ClickRadioButton(By locator)
 {
     element = GenericHelper.GetElement(locator);
     element.Click();
 }
Exemple #5
0
 public static IList <string> GetAllItem(By locator)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     return(select.Options.Select((x) => x.Text).ToList());
 }
 public static void TypeInTextBox(By locator, string text)
 {
     element = GenericHelper.GetElement(locator);
     element.SendKeys(text);
     Logger.Info($" Type in Textbox @ {locator} : value : {text}");
 }
Exemple #7
0
 public static void SelectElementByValue(By locator, string valueTexts)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByValue(valueTexts);
 }
Exemple #8
0
 public static void SelectElement(By locator, string visibletext)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByText(visibletext);
 }
Exemple #9
0
 public static void SelectElement(By locator, int index)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByIndex(index);
 }
 public static void CheckedCheckBox(By locator)
 {
     element = GenericHelper.GetElement(locator);
     element.Click();
     Logger.Info(" Click on Check box : " + locator);
 }
 public static void ClickLink(By Locator)
 {
     element = GenericHelper.GetElement(Locator);
     element.Click();
     Logger.Info(" Clicking on link : " + Locator);
 }