Topic: Selenium + plupload (set filepath from javascript)
Hello,
I was trying to automatically test my page using Seleinum.
On my page I have plupload using HTML5.
When I'm adding file using plupload I have system window where I can select file I'm interested in. Is it possible to omit this step?
If I know the absolute path to my file can I setup plupload component using javascript and start file upload?
I can do some thing like:
var uploader = $("#uploader").pluploadQueue();
var id = plupload.guid();
var file = new plupload.File(id, "myFile.txt", 6543);
uploader.trigger("FilesAdded", [file]);
This will fail obviously but mabe there is some simillar way of doing it?