Skip to content

ChromeDriver ignores download.prompt_for_download preference in Incognito mode #87

Description

@GCuser99

Started happening in ChromeDriver 117.

Will continue to monitor here:
https://bugs.chromium.org/p/chromedriver/issues/detail?id=4582

... and here:
https://stackoverflow.com/questions/77093248/chromedriver-version-117-forces-save-as-dialog-how-to-bypass-selenium-jav

The easiest work-around thus far is to turn off incognito mode...

A more involved work-around from 2nd link above:

Dim localStatePrefs As New Dictionary
localStatePrefs.Add "browser.enabled_labs_experiments", Array("download-bubble@2", "download-bubble-v2@2")
caps.SetOption "localState", localStatePrefs
driver.OpenBrowser caps

And another from same link:

caps.AddArguments "disable-features=DownloadBubble,DownloadBubbleV2"
driver.OpenBrowser caps

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions