hi ,
Help required in how to handle the click of a table column header link button which calls asynchronusly(uses AJAX) in WATIN
I currently have a table column, on click of that column header , all the items under that column are sorted in ascending or dsecnding order.
.This table colummn header link button makes use of AJAX to do the post back.
Now i not getting a way to wait untill the completion of the post back. i tried the following steps
Link myLink = table.Link(Find.ByText(new Regex(columnName)));
myLink.ClickNoWait();
myLink.WaitForComplete();
then didnt work. Again i tried with
Link myLink = table.Link(Find.ByText(new Regex(columnName)));
myLink.ClickNoWait();
System.Threading.Thread.Sleep(3000);
this above code works properly for some time. If i keep on clicking the column again and again then it will not wait for the complete post back :( .Here is where i am facing the trouble. I dont know how to handle the ajax request in Watin on click of a button or a link button.I read in few blogs that , "WaitUntil" is helpful in ajax call ... but i am not able to use this for my table column header link button.
also i tried with myIE.WaitUntilContainsText(columnName); , but here also no hopes :( .Its also not working
Could anyone please tell me how to handle the ajax calls for a table column header link button in WATIN ? .Thanks in advance for your patience and help :).
Thanks again
Keshav