Exemplo n.º 1
0
 public static void ClearTextBox(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Clear();
 }
Exemplo n.º 2
0
 public static void ClickButton(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
Exemplo n.º 3
0
 public static void TypeInTextBox(By locator, string text)
 {
     _element = GenericHelper.GetElement(locator);
     _element.SendKeys(text);
 }
Exemplo n.º 4
0
 public static void SelectByIndex(By locator, int index)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByIndex(index);
 }
Exemplo n.º 5
0
 public static void SelectByVisibleText(By locator, string text)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByText(text);
 }
        //legend[text()='Demographic Information']

        public static bool IsPageTitlePresent(string title)
        {
            return(GenericHelper.GetElements(By.XPath("//legend[contains(.,'" + title + "')]")).Count > 0);
        }
 public static bool IsErrorMsgPresent(string message)
 {
     return(GenericHelper.GetElements(By.XPath("//li[contains(.,'" + message + "')]")).Count > 0);
 }