Exemplo n.º 1
0
 public static void CheckedCheckBox(By locator)
 {
     GenericHelper.ClickOnElement(locator);
 }
Exemplo n.º 2
0
 public static void SelectElement(By locator, int index)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByIndex(index);
     Logger.Info("Select option with index: " + index + " in ComboBox: " + locator.ToString());
 }
Exemplo n.º 3
0
 public static void SelectElement(By locator, string visibleText)
 {
     select = new SelectElement(GenericHelper.GetElement(locator));
     select.SelectByText(visibleText);
     Logger.Info("Select option with text: " + visibleText + " in ComboBox: " + locator.ToString());
 }
Exemplo n.º 4
0
 public static void HoverAndClick(By locator)
 {
     element = GenericHelper.GetElement(locator);
     actions = new Actions(ObjectRepository.Driver);
     actions.MoveToElement(element).Click().Build().Perform();
 }