Answered

How can we add chrome preferences for enabling/disabling download prompt

Is there away to add in Chrome Options setting the ability to enable/disable download prompts?

I tried adding prefs =["download.prompt_for_download=true"] but it didn't work.

 

0
5 comments
Avatar
Joseph Hamdan

Hi Hasib,

Would you please attach a screenshot showing this prompt? Is it the one that has 2 buttons: Keep and Discard or a different one?

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Hasib Rostaiee

It's the "Save" prompt:

if below option is disabled in chrome , it wouldn't be prompted:

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Hasib,

Thanks for the images. So you're saying that when you execute a test, this option is enabled by default on the automation browser?

I ran a test just now and I see that it's disabled on the automation browser, even if it has been enabled on the main browser. Judging by the other post in Feature Request, this only happens for you in cloud runs?

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Hasib Rostaiee

Correct, however since our cloud-run have this popup shown (and can't be disabled because of some policy issues) I don't think the preference will going to change it.

I want to see if can enable it for local run as well so it match cloud. Like you said, I think there is a default preference for local runs which disabled it even if we enable the option in our local chrome browsers.

0
Comment actions Permalink
Avatar
Rex Feizi

Hasib,

You can use verify desktop command to see if the prompt exist and do the conditional based on that.

Thanks,

—Rex

0
Comment actions Permalink

Please sign in to leave a comment.