Hi,
We have a website that I am trying to automate. Basically there is a Html Input File control and its textbox is disabled. I need to click on its 'browse' button, navigate to the right file location and open a file. Once this is done, I need to upload this file.
We have been using WebAii 2010.2 version for our automation. We wont be able to upgrade to the newer version of the webaii suite. I managed to get this automated and everything seems to work fine on IE8 in Windows 7. But When I try to run this on IE9 on Windows 7, the file dialog opens and then right away closes. below is my code snippet
We have a website that I am trying to automate. Basically there is a Html Input File control and its textbox is disabled. I need to click on its 'browse' button, navigate to the right file location and open a file. Once this is done, I need to upload this file.
We have been using WebAii 2010.2 version for our automation. We wont be able to upgrade to the newer version of the webaii suite. I managed to get this automated and everything seems to work fine on IE8 in Windows 7. But When I try to run this on IE9 on Windows 7, the file dialog opens and then right away closes. below is my code snippet
#1 _manager.Settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle; _manager.DialogMonitor.AddDialog(new FileUploadDialog(_manager.ActiveBrowser, fileNameToUpload, DialogButton.OPEN, "Choose File to Upload")); _manager.DialogMonitor.Start(); _manager.ActiveBrowser.WaitUntilReady(); HtmlInputFile updlg = _manager.ActiveBrowser.Find.ById<HtmlInputFile>("ctl00_MainContent_FileUpload1"); #2 updlg.Click();
when I comment line #1, the dialog opens and right away closes. When I leave line #1 uncommented, then the dialog opens, after a couple of secs, it flickers,
then it flickers, then it stays there forever without moving to the next line of code.
for line #2, updlg.MouseClick() doesnt seem to do anything.
But all of this works fine in IE8!!! Can you guys tell me if there is any way this can be made to work in IE9? If that
is not possible, then is there an Add on for newer versions for Firefox?
When I try firefox, I see it open the window, but nothing happens and the address bar has this text: "about:blank?!!AOT2.0!Pipe.ArtOfTest.WebAii.BrowserProvisioner_517858088"
Am i missing some steps in setting up firefox?