Im testing the WatiN library using this simple code:
using (var browser = new IE("http://www.google.de"))
{
browser.TextField(Find.ByName("q")).TypeText("WatiN");
Button btn1 = browser.Button(Find.ById("gbqfba"));
btn1.Click();
while (!browser.ContainsText("watin.org"))
{
System.Threading.Thread.Sleep( 500 );
btn1.Click();
}
}
Anyway it works fine when i run it in debug mode having a breakpoint somewhere, but as soon as i run in release mode it types the desired text but the button doesnt seem to be clicked, so i have the search field with the text in it, and i dont get any search results.
Any known issues about this? any Ideas?
Thank you