Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 28, 2012 03:02 PM by big_dave
Feb 28, 2012 03:02 PM|LINK
I'm trying to test if a calendar extender appears when clicking inside a textbox .
HtmlInputElement textBox = (HtmlInputElement)page.Elements.Find(txtBoxElementName,TreatIdAs.Literal);
Assert.IsTrue(page.Elements.Find(calendarElementName, TreatIdAs.Literal).IsVisible() == true);
The elementNames I'm using are correct.
The above fails on the second Assert, presumably, because the calendar hasn't become visible. If I add a delay after the click, I can't see the calendar popup appear. leading me to believe the click is not working
Ive also tried using textBox.DispatchEvent(new HtmlMouseEvent("click")); but that doesn't work either
Any help would be greatly appreciated