I have a complicated interface where uploading a file is three step ( The forum is not allowing me to add screenshots of my window so please try to visualise it) step 1 click on browse tab and select a file to upload( This will create progress bar) step 2 click on start upload button Step 3 click on finish button firebug information about the elements on the page have been pasted at the bottom of the page. Id of my browse button is fileInputUploader
The code I am using to try and upload the file is ( within my test class)
WebElement upload = driver.findElement(By.id("fileInputUploader"));
upload.sendKeys("C:/Users/Deepankur/Desktop/Deepankur Folder/selenium Test Cases/test12.jpg");
But it's not doing anything
I am not able to see that upload progress animation in step 2, so I can click on start upload and finish it. Any help will be much appreciated.
Here is the html for this section of my page
<div style="padding: 20px; border: 2px solid #ccc; margin: 12px 0 0 0; width: 100%;" id="multiUploader">
<input width="110" type="file" height="30" id="fileInput" name="fileInput" style="display: none;"><object width="110" height="30" type="application/x-shockwave-flash" data="/core/webcore/swf/uploadify.swf" id="fileInputUploader" style="visibility: visible;"><param name="quality" value="high"><param name="wmode" value="opaque"><param name="allowScriptAccess" value="always"><param name="flashvars" value="uploadifyID=fileInput&pagepath=/core/root/&script=/core/application/pApproval/uploadify.cfm&folder=//192.168.100.51/client_data/CPM_ConcretePlatform_DEV/userUploads&scriptData=project_id%3D19%26client_id%3D2172%26project_file_type%3D2%26file_zone_id%3D104%26file_zone_group_id%3D17%26parent_project_file_id%3D0%26approval_rule_id%3D10%26job_id%3D519%26status_id%3D17&width=110&height=30&wmode=opaque&method=POST&queueSizeLimit=20&simUploadLimit=1&fileDesc=Please see the list of allowed file extensions under More Help Uploading&fileExt=*.jpg;*.tif;*.pdf;*.qxd;*.eps;*.psd;*.zip;*.doc;*.ppt;*.xls;*.pdf;*.mov;*.ai;*.png;*.bmp;*.ait;*.dwg;*.dxf;*.flv;*.indd;*.txt;*.inx;*.gif;*.cad;*.docx;*.xlsx;*.pptx;*.mpp;*.m2v;*.avi;*.vob;*.mpg;*.wmv;*.mp4;*.m4v;*.misc;*.ppsx&multi=true&sizeLimit=26214400&fileDataName=Filedata"></object><div class="uploadifyQueue" id="fileInputQueue"></div>
<br>
<br>
<a class="uploadButton" href="javascript:$('#fileInput').uploadifyUpload(); uploadStartFinishButton();">Start Upload</a>
</div>