I am getting ie script error, how do i handle the dialog in Watin?? i am using the following code, does not work, any suggestions, links, tips..... also tried to disable script debugging, but error is not gone.
-->. how to do it using Watin.
-->. any other method to do the same from the winform application.
var __ie = new WebBrowserIE(webBrowser1);
var thread = new Thread(() =>
{
var helper = new DialogHandlerHelper();
using (new UseDialogOnce(__ie.DialogWatcher, helper))
{
__ie.GoToNoWait("https://adwords.google.com/o/Targeting/Explorer?__u=1000000000&__c=1000000000&ideaRequestType=KEYWORD_IDEAS#search.none");
System.Threading.Thread.Sleep(5000);
}
foreach (string item in helper.CandidateDialogHandlers)
{
//dialog handler to use, but it does not reach here.
}
});
thread.SetApartmentState(ApartmentState.STA);
thread.IsBackground = true;
thread.Start();

Thank you in advance.