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); }
public static void ClickAndSendValue(string xpath, string value) { _webDriver.FindElement(By.XPath(xpath)).SendKeys(value); Browser.Wait(2000); }
public static void Click(string xpath) { _webDriver.FindElement(By.XPath(xpath)).Click(); Browser.Wait(2000); }