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

Impossible download files in chromedriver headless mode #131

DrDog47 opened this issue Jul 26, 2018 · 0 comments


Copy link

@DrDog47 DrDog47 commented Jul 26, 2018

Cannot download files in chromedriver headless mode. This issue is related with chromedriver headess mode.

How to make it work:
Send command to chromedriver with parameters {'cmd': 'Page.setDownloadBehavior', 'params': {'behavior': 'allow', 'downloadPath': download_path}}. But for now it's impossible, because of voidCommand method(function) of remoteWD interface if private (name starts from lower latter).

Possible Solution:
Solution is to send previous command by voidCommand() method of remoteWD interface in remote.go file. But the problem is that voidCommand() is private method.

So the solution is to make voidCommand() public method VoidCommand()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.