2013-06-11 115 views

回答

1

你的代碼不工作?它是否發送「y」而不是日期?

var query = driver.FindElement(By.Name("txtbox")); 
DateTime y = DateTime.Today; 
query.SendKeys(y.ToString()); // you shouldn't send string "y", but the y.ToString()