I often saw this with select lists when using the beta version of WatiN 2.0. Instead of using the aSelectList.Select (strText) parameter, it seems to work better when you do this:
ie.SelectList(Find.ById("MySelect")).Option(Find.ByText("Option 1")).Select();
This can also happen when you change an ASP.NET control that causes an automatic postback. The first change will be logged, but the next item that you are trying to access will cause a "Denied access" error because it is still trying to access the old page. In this case, you can try using ie.WaitForComplete (), but sometimes it is necessary:
ie.SelectList(Find.ById("AutoPostBackSelect")).Option(Find.ByText("Option")).Select(); System.Threading.Thread.Sleep(200); //Sleep to make sure post back registers ie.WaitForComplete(); ie.SelectList(Find.ById("MySelect")).Refresh() ie.SelectList(Find.ById("MySelect")).Option(Find.ByText("Option 1")).Select();
source share