I'm using the following code to bind watin to a webbrowser on the winform.
Dim w As IE = New IE(WebBrowser1.ActiveXInstance)
Settings.AutoStartDialogWatcher = False
w.GoTo("http://google.com")
I can see from wireshark that the page get's loaded, but the form is frozen until a exception gets thrown "Timeout while Internet Explorer busy".
Is there a way to bind watin to the webbrowser control ?
First of all, I think that this line:
should be at the beginning, before
IE
instance is created.Your code will work if you run it in separate thread.
Code in C# (sorry):
If I use this code it works
If it is not the best solution, but it works for me