public static void CheckedCheckBox(By locator) { GenericHelper.ClickOnElement(locator); }
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()); }
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()); }
public static void HoverAndClick(By locator) { element = GenericHelper.GetElement(locator); actions = new Actions(ObjectRepository.Driver); actions.MoveToElement(element).Click().Build().Perform(); }