Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage nightmare-download-manager with vo #20

Open
toshirov opened this issue Jul 12, 2017 · 0 comments
Open

Usage nightmare-download-manager with vo #20

toshirov opened this issue Jul 12, 2017 · 0 comments

Comments

@toshirov
Copy link

Can you provide an example of how to use the module in conjunction with vo?

I have to click a list of href's that trigger a download and I need to cancel them all. I'm using vo to do this and it works most of the times, but there are some times that a FileSave dialog pop-up, even when I setup the following:

` var nightmare = Nightmare({ show: true, ignoreDownloads: true });

nightmare.on('download', function(state, downloadItem) {
nightmare.emit('download', 'cancel', downloadItem);
}
`
I'm yielding nightmare 3 times, the last yield is where I click on the href's and that's where I'm calling '.downloadManager()' ... is that correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant