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

Download file in headless mode #1731

Closed
saimadao opened this issue Jun 4, 2021 · 2 comments
Closed

Download file in headless mode #1731

saimadao opened this issue Jun 4, 2021 · 2 comments

Comments

@saimadao
Copy link

saimadao commented Jun 4, 2021

download in headless mode need to set download path manually.
I have added below code into browsermanagement.py and it works fine

@keyword
def set_headless_download_path(self, path):
    """Set headless browser download path.

    Create by LMY, unofficial
    """
    params = {'behavior': 'allow', 'downloadPath': path}
    self.driver.execute_cdp_cmd('Page.setDownloadBehavior', params)
@aaltat
Copy link
Contributor

aaltat commented Jun 4, 2021

This is more of support question to Selenium or browser side. This issue tracker is reserved to bugs and feature requests and therefore issue will be closed. You could ask your question from the community: https://github.com/robotframework/SeleniumLibrary#community

@aaltat aaltat closed this as completed Jun 4, 2021
@saimadao
Copy link
Author

saimadao commented Jun 6, 2021

OK.
However, this issue has been submit in selenium git project in 2018, but unfortunately, still no official solution for this issue.
And the following are the issue tracker in selenium project
SeleniumHQ/selenium#5159
Codeception/Codeception#5518

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

2 participants