How to use the download.default_directory function in download

To help you get started, we’ve selected a few download examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 4minitz / 4minitz / tests / end2end / helpers / E2EAttachments.js View on Github external
static getChromeDownloadDirectory() {
        // .meteor/chimp_config.js configures chrome download dir relative to cwd()
        let chimpopts = require ('../../../.meteor/chimp_config');
        let downloadDir = chimpopts.webdriverio.desiredCapabilities.chromeOptions.prefs["download.default_directory"];
        expect(downloadDir, ".meteor/chimp_config.js must specify download.default_directory").to.be.ok;
        downloadDir = process.cwd() + "/" + downloadDir;
        return downloadDir;
    }