-
Notifications
You must be signed in to change notification settings - Fork 116
Error for missing update-config.json does not resolve the issue #269
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
Comments
This is not an issue with webdriver-manager...it looks like you are confusing the local node modules directory with global. Protractor is looking for the local file |
Thanks for the reply! I'm not confusing them (intentionally, at least). It is possible that due to ambiguity things are getting confused. I tried both The solution here is unclear, perhaps similar to my other bug #270? I've had some long running issues getting this to play nice & debugging has been fairly difficult with the provided output. Thanks again |
Setup [19:31:16] I/testLogger - [chrome #11] PID: 2750
[chrome #11] [19:31:16] E/local - Error code: 135
[chrome #11] [19:31:16] E/local - Error message: No update-config.json found. Run 'webdriver-manager update' to download binaries.
[chrome #11] [19:31:16] E/local - Error: No update-config.json found. Run 'webdriver-manager update' to download binaries. Can't be local vs global? |
FWIW this continues to be an enigma. Created a new Output ends up: [15:43:57] I/testLogger - [firefox #01] PID: 53192
[firefox #01] [15:43:57] E/local - Error code: 135
[firefox #01] [15:43:57] E/local - Error message: No update-config.json found. Run 'webdriver-manager update' to download binaries.
[firefox #01] [15:43:57] E/local - Error: No update-config.json found. Run 'webdriver-manager update' to download binaries.
[firefox #01] at IError (~/github/lunch-and-learn-grunt-testing-angular/node_modules/protractor/built/exitCodes.js:6:1)
[firefox #01] at ProtractorError (~/github/lunch-and-learn-grunt-testing-angular/node_modules/protractor/built/exitCodes.js:11:9)
[firefox #01] at BrowserError (~/github/lunch-and-learn-grunt-testing-angular/node_modules/protractor/built/exitCodes.js:52:9)
[firefox #01] at Local.addDefaultBinaryLocs_ (~/github/lunch-and-learn-grunt-testing-angular/node_modules/protractor/built/driverProviders/local.js:41:23)
[firefox #01] at Local.setupDriverEnv (~/github/lunch-and-learn-grunt-testing-angular/node_modules/protractor/built/driverProviders/local.js:82:14)
[firefox #01] at Local.setupEnv (~/github/lunch-and-learn-grunt-testing-angular/node_modules/protractor/built/driverProviders/driverProvider.js:111:34)
[firefox #01] at q.then (~/github/lunch-and-learn-grunt-testing-angular/node_modules/protractor/built/runner.js:335:41)
[firefox #01] at _fulfilled (~/github/lunch-and-learn-grunt-testing-angular/node_modules/q/q.js:834:54)
[firefox #01] at self.promiseDispatch.done (~/github/lunch-and-learn-grunt-testing-angular/node_modules/q/q.js:863:30)
[firefox #01] at Promise.promise.promiseDispatch (~/github/lunch-and-learn-grunt-testing-angular/node_modules/q/q.js:796:13)
[firefox #01] at ~/github/lunch-and-learn-grunt-testing-angular/node_modules/q/q.js:857:14
[firefox #01] at runSingle (~/github/lunch-and-learn-grunt-testing-angular/node_modules/q/q.js:137:13)
[firefox #01] at flush (~/github/lunch-and-learn-grunt-testing-angular/node_modules/q/q.js:125:13)
[firefox #01] at _combinedTickCallback (internal/process/next_tick.js:73:7)
[firefox #01] at process._tickCallback (internal/process/next_tick.js:104:9)
[firefox #01] Is a bit bewildering. I have tried:
I'll get similar things over and over:
|
I'm not yet certain this issue should be closed. Either something is incorrect or at least the UX is unclear & could be improved. |
For clarity will share my https://travis-ci.org/benjaminapetersen/lunch-and-learn-grunt-testing-angular & completely willing to accept I have consistently done something horribly wrong 😄 |
Another stack overflow: https://stackoverflow.com/questions/42911197/webdriver-manager-update-config-json-absolute-paths Further explanation, though follow-up comments indicate the issue was not resolved. |
@benjaminapetersen Where you able to resolve this issue? I am seeing a similar issue when attempting to use a local webdriver-manager. I am seeing |
Currently working, though I don't remember what I did to resolve. I think its the kind of issue that just needs a little UX love to polish it off. |
A couple of weeks back I faced the same issue in MAC. This is what I did, find all chrome|gecko|xyz driver and kill all the process. Uninstall protractor from global and from local workspace. |
Rings a bell, I may have done similar. |
Try adding the seleniumAddress to your Protractor config file:
With my config, I now start the Selenium server by running: |
I ran into the same error you're referring to. What I found was webdriver-manager was installed in a few different places. If you installed it explicitly with npm, it's in your path. But protractor also installs it in it's own node_modules and that's the one that's looking for the config. So you need to run the update on the version in the protractor module and then start that same version for protractor to connect to. |
Following blog is useful, last two steps are helpful that is swapping node.exe from your installed directory to eclipse plugin directory: |
@danielwashbrook 's comment was helpful to me. Essentially, it seems that the error happens because you update webdriver at the system level, but not the one used internally by protractor. Try |
When running Protractor with directConnect, we refer to the latest on the update-config.json. So how can we side step the whole problem for Protractor? Before we talk about the two examples, the magic is to override the Running into a GitHub API limitSome final thoughts on this. Webdriver-manager can hit a GitHub API limit which can be problematic on CI. Possibly the solution is to follow the next step about how to use a global install. If you do not have to run FireFox, then you could add the flag Using a global install of webdriver-manager could helpIn an environment like Jenkins, you could run a global Completely side step webdriver-manager and wgetIn an environment you do not control, you might want a specific chromedriver version, you could just do a wget on the chromedriver. The list of chromedriver versions is here: https://chromedriver.storage.googleapis.com/index.html. From there you could still pass the path to the chromedriver to Protractor via command line. |
fix random errors between `webdriver-manager update` and Travis See also angular/webdriver-manager#269 (comment)
In my case the error happens because of custom copy of |
@danielwashbrook that was it for me. Once I ran Then protractor worked. Thanks! |
Great guys!!! I can confirm this on travis as well https://travis-ci.com/jsGanttImproved/jsgantt-improved/builds/95386323 i added this on travis.yml
Thanks |
Please make sure to install Update web driver manager Run this command from your root Now start up a server with: Also make sure that your protractor.conf.js file has below line Now run your e2e tests on different browsers |
@nishankkumar1994 |
Other ways to run webdriver-manager locally: Using npx
Run this locally in the project with the node_modules installed. It should run the local version in your node_modules folder. Adding a command to your scripts in package.jsonpackage.json
|
I had similar issue and it got fixed by running "npx webdriver-manager update" in project directory :0 |
Below is a working protractor.conf.js of mine:
|
I had the similar issue.got fixed by node ./node_modules/protractor/bin/webdriver-manager update.Thanks !! |
Run >>> |
Run >>> npx webdriver-manager update |
Thanks @SebastianKristof! I fixed it by following his instruction. |
For people working with Protractor together with gulp-protractor plugin - node_modules/protractor/bin/webdriver-manager The second location is where gulp-protractor looks for the webdrivers.
[edit]
|
When I receive this error:
I can run the suggested
webdriver-manager update
command and get the following:and end up just repeating the process.
The text was updated successfully, but these errors were encountered: