How to wait until a collection exists using WatiN

200 views
Skip to first unread message

MatteS75

unread,
Sep 19, 2011, 3:21:53 AM9/19/11
to WatiN Users Group
I posted an SO question:

http://stackoverflow.com/questions/7377589/how-to-wait-until-a-collection-exists-using-watin

With WatiN you can until an element exists, which is very useful in
ajax scenarios:

var button = browser.Button("myButtonId");
button.WaitUntilExists();
button.Click();

Is there any way to do this for a collection, like so?

var listItems = browser.ListItems(Find.By("my-attribute", "a value"));
listItems.WaitUntilExists();


Reply all
Reply to author
Forward
0 new messages