hejdig.

>We are trying to write a test for browser's file upload control, but 
>unable to do so using Selenium. Objective is that I should be able to 
>upload a file e.g. c:\temp\temp1.zip as attachment. In HTML source of the 
>page, this control is identified as - Input Type = "File". Can someone 
>suggest a way to do a file upload using Selenium?

You cannot manipulate the file upload control through clientside javascript.  
That is a security issue, no site should be able to upload files from your 
computer without your acknowledge.

Since Firefox/Mozilla is open source you could always hack it.  Not to bad a 
solution because then you can, on 1 browser and several operating systems, test 
the fileupload control's functionality.

HTH

/OF

<<winmail.dat>>

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to