This is not a duplicate . I have a Selenium solution for this, but I do not prefer using Selenium . I hope somevbody could help me with a HttpUrlConnection
code that would deal with this javascript directly rather than finding a work around that pop up using Selenium
On a webpage I have the following link (covered with an image)
<a .............
onclick="javascript:downLoad('CAMID(\xxx;)/folder[@name=\'test\']/folder[@name=\'test\']
/reportView[@name=\'test\']/output[@name=\'test']',
'spreadsheetML' )" alt="Download" ></a>
Ones I click on this link a pop up window shows up and I can click on the save
How can I get this file programmatically using Java? There must be a way to stream the file without even touching that pop up
So far I am using Selenium
and Java Robot
object to hit that save
button . But I am sure there must be a way to download it directly .