Exemple #1
0
        public static string readTextFromField(string xpath)
        {
            var element = _webDriver.FindElement(By.XPath(xpath));

            Browser.Wait(2000);
            string value = element.Text;

            Browser.Wait(2000);
            return(value);
        }
Exemple #2
0
 public static void ClickAndSendValue(string xpath, string value)
 {
     _webDriver.FindElement(By.XPath(xpath)).SendKeys(value);
     Browser.Wait(2000);
 }
Exemple #3
0
 public static void Click(string xpath)
 {
     _webDriver.FindElement(By.XPath(xpath)).Click();
     Browser.Wait(2000);
 }