How to check if file has been downloaded with Protractor/Selenium?
<p>Configuration:   </p>

<pre><code> capabilities: {
        'browserName': 'chrome',
        'chromeOptions': {

            prefs: {
                download: {
                    'prompt_for_download': false,
                    'directory_upgrade': true,
                    'default_directory':  'src/test/javascript/e2e/downloads'
                }
            }
        }
    },
</code></pre>

<p>I download with this</p>

<pre><code>productDashboardPageObject.exportDashboard();
</code></pre>

<p>It downloads but I cant check if it was downloaded.</p>

<p>How to check if files has been downloaded ?</p>