selenium icon indicating copy to clipboard operation
selenium copied to clipboard

[🚀 Feature]: Allow Selenium Manager to use mirror URL without reproducing existing JSON formats

Open titusfortner opened this issue 2 years ago • 2 comments

Feature and motivation

Allow specifying a URL with a specific file structure, or allow providing a json template to use rather than needing to copy the browser vendor's more complicated JSON schema.

This is a follow-on to https://github.com/SeleniumHQ/selenium/issues/13460 and is a valid feature, but the Selenium team is unlikely to prioritize this.

Usage example

https://github.com/giggio/node-chromedriver/blob/120.0.2/install.js#L131

or create a custom schema in toml file or in same directory that Selenium Manager would use to know how to parse the file at the provided URL.

titusfortner avatar Jan 28 '24 17:01 titusfortner

This issue is looking for contributors.

Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested.

github-actions[bot] avatar Jan 28 '24 17:01 github-actions[bot]

This is a very legitimate solution in terms of how to handle mirrors. As an alternative to this. to avoid having to create a schema for every mirror, (beware, evil hack incoming), couldn't we try to match (from whatever response schema and/or format we get - it wouldn't matter) the download URL according to the filename via regex? This is, of-course, a terrible and evil hack, but I'd assume this would support most - if not all - use-cases for this feature.

Edit: The reason for this alternative proposal, is the fact that the original solution would probably be too much effort to actually implement. We'd have to somehow match arbitrary schemas to JSON path's metadata essentially. This is highly non-trivial.

gerelef avatar Jul 27 '24 08:07 gerelef