Similar question asked below
But there is no answer yet. The expected result is to get many files, some file to store image, etc.
I used the following,it will pop up a windows saying to save the file
val a=new FirefoxDriver()
a.get("http://www.baidu.com")
val b=new Actions(a)
b.action.keyDown(Keys.ALT).keyDown(Keys.F4).keyUp(Keys.ALT).perform();
But then how to click the save button? The following doesn't work
b.sendKeys(Keys.ENTER)