Forum Discussion
duncanbrown
15 years agoOccasional Contributor
A clear example of this problem can be seen by going to http://jqueryui.com/demos/datepicker/ in IE8, clicking in the 'Date' box to bring up the datepicker, then running the following script:
function test()
{
var monthNode = Sys.Process("iexplore").Page("http://jqueryui.com/demos/datepicker/").Panel("ui_datepicker_div").Panel(0).Panel(0).TextNode(0);
var prevLink = Sys.Process("iexplore").Page("http://jqueryui.com/demos/datepicker/").Panel("ui_datepicker_div").Panel(0).Link(0).TextNode(0);
for (var i = 0; i < 3; i++)
{
ShowMessage(monthNode.innerText);
prevLink.FireEvent("onclick");
}
}
If you have the same issue I do, the month displayed on-screen will change but the dialogue will always show the same month.
(using FireEvent() instead of TC's Click() method is necessary because, after the first click, TC claims that the object has no dimensions; I guess that is maybe related to the main issue).
function test()
{
var monthNode = Sys.Process("iexplore").Page("http://jqueryui.com/demos/datepicker/").Panel("ui_datepicker_div").Panel(0).Panel(0).TextNode(0);
var prevLink = Sys.Process("iexplore").Page("http://jqueryui.com/demos/datepicker/").Panel("ui_datepicker_div").Panel(0).Link(0).TextNode(0);
for (var i = 0; i < 3; i++)
{
ShowMessage(monthNode.innerText);
prevLink.FireEvent("onclick");
}
}
If you have the same issue I do, the month displayed on-screen will change but the dialogue will always show the same month.
(using FireEvent() instead of TC's Click() method is necessary because, after the first click, TC claims that the object has no dimensions; I guess that is maybe related to the main issue).