Open smonasco opened 5 years ago
Sad face. This is new.
Will fix and make a new release for 12. The good news is that 13 doesn't have this problem.
I have a proposed fix and if this is reviewed today I will try to get a release out since this is probably breaking things. Have you tried the alpha jar file yet?
Do I have any workarounds ?
I think the fix is to do another release for webdriver-manager. This will be released tomorrow. Stay tuned.
i am having the same issue..
@yiyi920 See https://github.com/angular/protractor/issues/5224. Resolved a few different ways for temporary workarounds.
thanks @clymerrm , i think the driver is up and running if i forced it to use the older version. but when i run [protractor conf.js] it error out: E/launcher - SessionNotCreatedError: Unable to create new service: GeckoDriverService E/launcher - Process exited with error code 199
i am not sure if that is related.. i am pretty new to protractor, i still trying to set it up and running for basic stuff.
I tried the following commands
$ webdriver-manager clean
$ webdriver-manager update --standalone --versions.standalone=3.8.0
$ webdriver-manager start --versions.standalone=3.8.0
but I get the following error
root@user-lt:/cc/node_modules/protractor/bin# ./webdriver-manager start --versions.standalone=3.8.0
[17:03:12] I/start - java -Djava.security.egd=file:///dev/./urandom -Dwebdriver.chrome.driver=/cc/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46 -Dwebdriver.gecko.driver=/cc/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.24.0 -jar /cc/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.8.0.jar -port 4444
**[17:03:12] I/start - seleniumProcess.pid: undefined
[17:03:12] W/start - Selenium Standalone server encountered an error: Error: spawn java ENOENT**
Any Ideas?
@telangn Have you tried a newer version of Selenium Server? 3.8.0 is from 2017.
@clymerrm I just found that although I am manually seeing this issue I described, if I run my spec with the conf having directConnect, everything runs OK....sorta, I'm having issue with either the page loading or clicking on an element, not sure if that has anything to do with server...but perhaps I will try a more current version of the server as you suggested.
This did not close? Weird.
Leaving this open. If you are encountering this issue, please update to webdriver-manager 12.1.2. If you are using Protractor to download webdriver-manager, simply remove the node_modules directory and reinstall or do a npm install -f
.
@telangn the reason why directConnect works here is that it does not use the jar file to start the selenium server and just goes straight to the browser driver binary.
I am facing the same problem too
Is this issue fixed? we are still having the same issue web driver manager version - 13.0
13:45:13 (node:145) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: response status code is not 200
13:45:13 (node:145) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Pipeline] sh
13:45:14 + npmVersion=0.1.0-prerelease.5
13:45:14 + node_modules/webdriver-manager/bin/webdriver-manager start --detach
13:45:14 java -Dwebdriver.chrome.driver=/home/jenkins/workspace/_performance-ui-automation_PR-26/node_modules/webdriver-manager/downloads/chromedriver_73.0.3683.68 -Dwebdriver.gecko.driver=null -jar /home/jenkins/workspace/_performance-ui-automation_PR-26/node_modules/webdriver-manager/downloads/selenium-server-standalone-4.0.0-alpha-1.jar -role node -servlet org.openqa.grid.web.servlet.LifecycleServlet -registerCycle 0 -port 4444
13:45:14 selenium process id: undefined
13:45:14 events.js:183
13:45:14 throw er; // Unhandled 'error' event
13:45:14 ^
13:45:14
13:45:14 Error: spawn java ENOENT
13:45:14 at _errnoException (util.js:1022:11)
13:45:14 at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
13:45:14 at onErrorNT (internal/child_process.js:372:16)
13:45:14 at _combinedTickCallback (internal/process/next_tick.js:138:11)
13:45:14 at process._tickCallback (internal/process/next_tick.js:180:9)
13:45:14 at Function.Module.runMain (module.js:686:11)
13:45:14 at startup (bootstrap_node.js:187:16)
13:45:14 at bootstrap_node
Is this issue fixed? we are still having the same issue
This has been resolved. I would verify you have the correct version of webdriver-manager@12.1.4.
Hi. I’m running into a problem where webdriver-manager is downloading a zip and renaming it .jar and then I get a corrupt jarfile.
curl -o/Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-4.0.0-alpha-1.zip.jar https://selenium-release.storage.googleapis.com/4.0/selenium-server-standalone-4.0.0-alpha-1.zip
This is of course not a proper jar file and later I get
[webdriver] Error: Invalid or corrupt jarfile /home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-4.0.0-alpha-1.zip.jar
running it from bash this is the output.