Many thanks for your reply! I've made my test connected to our Silverlight app in IE.
However, I added the line of code suggested by you. And I can see that it doesn't close the File Open Win32 dialog after a few second anymore. However, it doesn't enter the URL specified in the constructor. The File Open dialog will remain open until uploadDialog.WaitUntilHandled()
Here are my modified codes:
/// Initialization for each test.
#region WebAii Initialization
Settings settings = GetSettings();
settings.DefaultBrowser = m_config.Type;
settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
// Now call Initialize again with your updated settings object
And the steps to open the Win32 File Open dialog:
FileUploadDialog uploadDialog =
FileUploadDialog(ActiveBrowser, m_fileURI, DialogButton.OPEN);
uploadDialog.WaitUntilHandled(); //times out here
I am using the 2010.2.830.0 Framework in IE8.
Please help me again! I feel I am only one step away from the final solution :)