I tried to write a SeleniumIde Plugin that allows me to write some values in a .csv file. So, I created this js code to create a temp blob file that I can save:
var blob = new Blob([""], {type: 'text/csv'});
if(window.navigator.msSaveOrOpenBlob)
{
window.navigator.msSaveBlob(blob, filename);
}
else
{
var elem = window.document.createElement('a');
elem.href = window.URL.createObjectURL(blob);
elem.download = "test.txt";
document.body.appendChild(elem)
elem.click();
document.body.removeChild(elem);
}
In fiddler this works, but selenium ide is not a "real" website so window.URL.createObjectURL creates a url like this null/myBlobHash. Has anyone tried to write a .csv file or other files from selenium ide?
Thanks, Christoph