Skip to content

alternate_cdn is ignored (discussion) #325

Closed
@CSchulz

Description

@CSchulz

V. 12.1.0

Running the command with alternate_cdn tries to download the file via the URL defined in config.json:

./node_modules/.bin/webdriver-manager update --gecko=false --standalone=false --alternate_cdn=https://mychromemirror --verbose
https://mychromemirror
ChromeDriver {
  ostype: 'Darwin',
  osarch: 'x64',
  cdn: 'https://mychromemirror',
  configSource:
   ChromeXml {
     ostype: 'Darwin',
     osarch: 'x64',
     out_dir:
      '.../node_modules/protractor/node_modules/webdriver-manager/selenium',
     name: 'chrome',
     xmlUrl: 'https://chromedriver.storage.googleapis.com/' },
  name: 'chromedriver',
  versionDefault: '2.27',
  versionCustom: '2.27' }
[15:40:05] I/downloader - curl -o.../node_modules/webdriver-manager/selenium/chromedriver_2.42.zip https://chromedriver.storage.googleapis.com/2.42/chromedriver_mac64.zip
[15:40:05] I/update - chromedriver: unzipping chromedriver_2.42.zip
[15:40:05] I/update - chromedriver: setting permissions to 0755 for .../node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.42

I think the reason is the missing pass through of the alternate cdn to the config file f.e.

constructor() {
super('chrome', Config.cdnUrls()['chrome']);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions