Hi, I am trying to automate file upload function in our application. The application handles both silverlight drag drop upload and also normal file select dialog upload. I am trying to automate without using silverlight. The code is below.
HtmlInputFile fileUpload = ActiveBrowser.Find.ByName<HtmlInputFile>("documentFileInput");
Assert.IsTrue(fileUpload != null);
fileUpload.Upload("C:\\folder1\\folder2\\worddoc.docx, 6000");
When this code is executed, I see the upload dialog box appears but the file path is not typed in the text box on the dialog, and it closes itself and I get a timeout error at the last line.
Is there any other code that needs to be written here to handle the dialog box and write complete file path in there and to click open button?
Thanks
QuickStarts_NUnit_CS.Frames.FramesAction:System.NullReferenceException : Object reference not set to an instance of an object.at QuickStarts_NUnit_CS.Frames.FramesAction() in c:\Program Files (x86)\Telerik\Test Studio\Samples\Testing Framework\QuickStarts_NUnit_CS\Tests\Frames.cs:line 138