-
Notifications
You must be signed in to change notification settings - Fork 15
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
delegate chromedriver version management to users #30
Conversation
Is there a way to detect the Chromium version based on the Electron version used? I had similar issues when working on the VSCode test service. Maybe we can hardcode a list of Chromedriver versions that are compatible to a specific Electron version. Overall it would be nice if this service can help with the whole Chromedriver setup in some way or the other. |
@christian-bromann I'm not sure. Obviously there is a mapping between Chromium version and Electron version but I'm not sure we can get either for a given app without running it first and/or doing something crazy: It would be nice to do something else though if it is possible to find the Electron version, even if it's just a command prompt to install a specific version of One possibility could be to install |
@goosewobbler sounds good! How about we assume by default the user wants to test the latest Electron version and if not and an older version is being tested, that version needs to be specified in the capabilities. You can define your custom ones, e.g.: |
@christian-bromann any interaction with https://github.com/electron/chromedriver Could read the wdio config file as part of a setup script to ensure the right chromedriver version but it would need to be done separately from the launcher execution I reckon. |
What I've did in the VSCode service is that as part of the launcher I would download the required Chromedriver version and put it into a
What do you think? |
Sounds good, I'll raise a separate ticket for it as it's a fair bit more involved than this stopgap approach. Basically taking electron-chromedriver and pulling it into the service. Can use https://github.com/electron/get to download chromedriver for a specific electron version I think, it's what electron-chromedriver uses. |
Making electron-chromedriver an optional peerdep, looking for it when chromedriverCustomPath is not specified, throwing an error when not found.