You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
Are you using Protractor to use these binaries? How are you starting your selenium server or are you using direct connect? Potentially the flag "alternative_cdn" is the wrong name for this flag.
I think the problem is that your cdn is only the chrome stuff & not all the things that need downloaded in the right structure. Note that his cdn has more than just the chrome stuff hosted.
Is this a good idea from a security standpoint to download binaries that someone says is the binary?
Is there no way to get the regular update to work? Is using a proxy an option? If you can use a proxy, can you try https://github.com/cnishina/webdriver-manager-replacement? I have tested the whole thing to work against a proxy (probably needs documentation). I also want to eventually update this project with this. It still works the same where alternative_cdn does not exist.
I definitely think the flag name should be renamed since it runs a different workflow. Alternative cdn implies that there's an endpoint that has the exact same setup to download a cache of versions and parses the file to find a downloadable version.
Downloading a file by URL might be helpful because of the way webdriver-manager downloads files. This might be important so it can create the file (in the current project this is update-config.json) required to run directConnect or starting Protractor with a local driverProvider.
The organization I am working at (government) is currently blocking storage.googleapis.com so we are trying to figure out how to work around that. Could these files be packaged into their own NPMs like the selenium-server-standalone-jar NPM? Or could they be downloaded from a site with better content curation (i.e. less likely to be blocked)?
We are hitting GitHub's rate limit after some time which makes our CD pipeline fail. We would really like to place our binaries in our binary repository and download from there. Maybe also a remote (proxy) repository would work so we could at least use a cache.
@hdeadman So if you cannot download to storage.googleapis.com, could you get access via proxy? Packaging binaries in npm would be not ideal. I don't think this is probably good practice.
So I guess if you had a box externally to your network that did a proxy forward to storage.googleapis.com, you could download from whatever host name you created?
I guess if this is the specific use case, I could maybe create the basic nginx config for this and provide it when you use an an "alternative_cdn". And all the calls would go to (in this example), myrandomurl.com. When calling GitHub, I'm not sure how this will handle the redirects.
Alternatively, if you did have an externally running job, I would think about running webdriver-manager update and rysnc-ing or copying these files to a local machine.
May I ask why would you provide the option --alternate_cdn if it doesn't work?
Isn't it the basic principle of binary repositories to be organized as a star network where each company is supposed to maintain its own private cache of the upstream CDN?
Activity
cnishina commentedon Oct 11, 2018
Yes it shouldn't work. I do not have plans to support this... I thought about closing this issue but we should have a discussion about this.
Do you want to download a file and pass the url directly to webdriver-manager? Do you want something like this?
Are you using Protractor to use these binaries? How are you starting your selenium server or are you using direct connect? Potentially the flag "alternative_cdn" is the wrong name for this flag.
vort3xxx commentedon Oct 16, 2018
I'm able to point to this guy's alternate cdn and it works for me: https://github.com/JohannesHoppe/webdriver-manager-alternate-cdn
I think the problem is that your cdn is only the chrome stuff & not all the things that need downloaded in the right structure. Note that his cdn has more than just the chrome stuff hosted.
cnishina commentedon Oct 16, 2018
Okay. So I have more questions:
Finally is the goal to download files like:
I definitely think the flag name should be renamed since it runs a different workflow. Alternative cdn implies that there's an endpoint that has the exact same setup to download a cache of versions and parses the file to find a downloadable version.
Downloading a file by URL might be helpful because of the way webdriver-manager downloads files. This might be important so it can create the file (in the current project this is update-config.json) required to run directConnect or starting Protractor with a local driverProvider.
[-]alternate_cdn is ignored[/-][+]alternate_cdn is ignored (discussion)[/+]CSchulz commentedon Oct 17, 2018
I think in a corporate environment you can trust the alternative source for binaries.
Our workaround is downloading the binary manually:
And setting the chromeDriver binary in the protractor.conf.js.
hdeadman commentedon Oct 25, 2018
The organization I am working at (government) is currently blocking storage.googleapis.com so we are trying to figure out how to work around that. Could these files be packaged into their own NPMs like the selenium-server-standalone-jar NPM? Or could they be downloaded from a site with better content curation (i.e. less likely to be blocked)?
stieler-it commentedon Nov 23, 2018
We are hitting GitHub's rate limit after some time which makes our CD pipeline fail. We would really like to place our binaries in our binary repository and download from there. Maybe also a remote (proxy) repository would work so we could at least use a cache.
cnishina commentedon Apr 10, 2019
So I guess if you had a box externally to your network that did a proxy forward to storage.googleapis.com, you could download from whatever host name you created?
So instead doing something like:
You could call:
I guess if this is the specific use case, I could maybe create the basic nginx config for this and provide it when you use an an "alternative_cdn". And all the calls would go to (in this example), myrandomurl.com. When calling GitHub, I'm not sure how this will handle the redirects.
Alternatively, if you did have an externally running job, I would think about running webdriver-manager update and rysnc-ing or copying these files to a local machine.
cnishina commentedon Apr 11, 2019
Should also look at #300
cnishina commentedon Apr 11, 2019
Okay after discussion with the team offline, this is not something we will support.
hmil commentedon Jul 16, 2020
May I ask why would you provide the option
--alternate_cdnif it doesn't work?Isn't it the basic principle of binary repositories to be organized as a star network where each company is supposed to maintain its own private cache of the upstream CDN?