public void User_LogIn()        {
Pages.Login.GoTo();
//Thread.Sleep(50000);
TimeSpan ti =new TimeSpan( 5000000000000);

WebDriverWait wait = new WebDriverWait(webDriver,ti );
wait.Until(ExpectedConditions.VisibilityOfAllEleme ntsLocatedBy(By.Id("txtUserName")));
// webDriver.Manage().Timeouts().ImplicitlyWait(30, TimeUnit.SECONDS);
var txtName = Browser.webdriver.FindElement(By.Id("txtUserName") );
txtName.SendKeys("14");
var txtPass = webDriver.FindElement(By.Id("txtPassword"));
txtPass.SendKeys("14");
var btnSend = webDriver.FindElement(By.Id("btnSubmit"));
btnSend.Click();
var checkName = Browser.webdriver.FindElement(By.Id("ctl00_lblName ")).Text;
var checkId = Browser.webdriver.FindElement(By.Id("ctl00_lblPern o")).Text;
var checkJobGroup =
webDriver.FindElement(
By.XPath("/html/body/form/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[1]/table/tbody/tr[8]/td[4]"))
.Text;
var section =
webDriver.FindElement(
By.XPath("/html/body/form/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[1]/table/tbody/tr[8]/td[2]"))
.Text;
Assert.AreEqual(true,VerifyElement(checkId,checkNa me,checkJobGroup,section));
}







المنت های صفحه را پیدا نمی کند حتی با اینکه منتظر می ماند