I try to use this function:
downloadBytes(exportLink.@href)
but I get array of bytes. How can I get zip file.
I found another solution for saving zip in geb without asking directory. I configured my GebConfig.groovy :
profile.setPreference("browser.download.folderList",2)
profile.setPreference("browser.download.manager.showWhenStarting",false)
profile.setPreference("browser.download.dir", new File("").getAbsolutePath())
profile.setPreference("browser.helperApps.neverAsk.saveToDisk","application/zip")