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 with this,

productDashboardPageObject.exportDashboard();

It downloads the file, but I am not able to if it was . It has only count in name, so I can 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.



Source link https://sqa.stackexchange.com/questions/24013/how-to-check-if-a-file-is-downloaded-using--

LEAVE A REPLY

Please enter your comment!
Please enter your name here