This is the path
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
prefs: {
download: {
'prompt_for_download': false,
'directory_upgrade': true,
'default_directory': 'src/test/javascript/e2e/downloads'
}
}
}
},
I download the file with this,
productDashboardPageObject.exportDashboard();
It downloads the file, but I am not able to check if it was downloaded. It has only count in name, so I can check if it contains count.
After all is done I will delete files, so only those files will stay after I download.
I did lots of things but could not manage.
browser.wait()
)glob
to the downloads directory: stackoverflow.com/questions/41082777/….