Replies: 1 comment
-
If the intent is to run an npm action I'd use option 3, as I've done many times in the past. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've been using in some of our projects a update-chromedriver.js file with these contents:
We did like this so we could explicitly set the DETECT_CHROMEDRIVER_VERSION environment variable and call this script from package.json, which doesn't have a native cross-platform way to set environment variables.
We were using version 121 of this package. It correctly detects our Chrome version and downloads the corresponding chromedriver package. However, when trying to run this same thing with the latest version, it is doing nothing. I tracked it down to this commit, starting in version 122 of this package: c91fa59.
I realize we were taking advantage of this undocumented behavior, and it was changed to be able to unit test this file. Here are a few alternatives to work with this change:
Run chromedriver/install with fork
require chromedriver/install and call .install()
Resort to using cross-env in package.json to set environment variable in a script:
Would be interested if anyone has a more elegant solution to this new behavior, and I hope this information could be helpful to any others who were relying on this previous behavior. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions