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

Unable to download a file when clicking on a link #3

Open
gopalagrawal opened this issue Sep 24, 2019 · 0 comments
Open

Unable to download a file when clicking on a link #3

gopalagrawal opened this issue Sep 24, 2019 · 0 comments

Comments

@gopalagrawal
Copy link

I'm using python + Selenium webdriver. I have the webdriver configured as follows:

    options = webdriver.ChromeOptions()
    prefs = { 
        'download.default_directory'                :  "/home/ga/Downloads", 
        'profile.default_content_settings.popups'   : 0,
        'download.prompt_for_download'              : False
    }
    options.add_experimental_option('prefs', prefs)

    driver = webdriver.Remote( 'http://127.0.0.1:4444',   DesiredCapabilities.CHROME, options=options)

But when doing a driver.get( url-to-a-csv-file ) nothing is downloaded. Any idea what else needs to be done. If this could be documented, it would help immensely. Most likely, its some settings for the chromedriver that's missing or perhaps the docker container runs chrome in such a way as to prevent the download of file.

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