views:

34

answers:

0

When I try to use the MvcContrib.TestHelper.WatiN API to conduct UI unit testing that utilizes AJAX to populate select lists, I receive a SelectListItemNotFound Exception. Aside from using a Sleep statement, is there some way of "pausing" until the list is filled?

The link, http://pushpontech.blogspot.com/2008/04/ajax-issues-with-watin.html, describes the problem and provides a solution when using straight WatiN. I'm trying to solve the same problem, however, I'm using the MvcContrib.TestHelper.WatiN library.