ie.HTMLDialog(...) doesn\'t WaitForComplete
Brought to you by:
jvmenen
When using code that looks something like this:
HTMLDialog dialog = ie.HTMLDialog(Find.ByTitle
("main"));
You also need to add
ie.WaitForComplete;
because WatiN doesn't wait for the HTMLDialog to be
completely loaded before returning an HTMLDialog
instance.
ie.HTMLDialog(...) should call WaitForComplete so the
additional ie.WaitForComplete in your testcode can be
dropped.
Logged In: YES
user_id=799177
Added WaitForComplete to ie.HTMLDialog(...)