When i download a data uri(this works in chrome/FF),using
url1 = "data:attachment/plain;base64,encodeuri(<base64data-xyz>)"
Here using attachment mime type forces it to download, using any other mime type like(text/html) will open the content of file in new tab, since i wanted to download ,i used attachment/plain-xyz [MIME type].
I tried the download attribute, but everytime,the file name downloaded is "download", and there is no extension, so it gets appeneded in my downloads folder as ".FILE", whereas i need to store it using "variable.txt"
Please do guide me how you are able to change "download.FILE" to some "variable.txt", i have tried all attributes of data, download, data-downloadurl, contentdisposition,even tried setting pom attributes etc..
Please help in converting the downloaded file content to a file with some filename and .txt as extension