When I try to download ie driver for protractor testing, I do
webdriver-manager update --ie
but I get the below error
(node:17636) UnhandledPromiseRejectionWarning: TypeError: Invalid Version: .3.150.2
at new SemVer (C:\Users\francisp\AppData\Roaming\npm\node_modules\protractor\node_modules\semver\semver.js:323:11)
at compare (C:\Users\francisp\AppData\Roaming\npm\node_modules\protractor\node_modules\semver\semver.js:614:10)
at Function.gt (C:\Users\francisp\AppData\Roaming\npm\node_modules\protractor\node_modules\semver\semver.js:643:10)
at C:\Users\francisp\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\built\lib\binaries\iedriver_xml.js:43:33
(Use `node --trace-warnings ...` to show where the warning was created)
(node:17636) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:17636) [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.
[21:41:10] I/update - selenium standalone: file exists C:\Users\francisp\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.141.59.jar
[21:41:10] I/update - selenium standalone: selenium-server-standalone-3.141.59.jar up to date
[21:41:10] I/update - chromedriver: file exists C:\Users\francisp\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_94.0.4606.61.zip
[21:41:10] I/update - chromedriver: unzipping chromedriver_94.0.4606.61.zip
[21:41:10] I/update - chromedriver: chromedriver_94.0.4606.61.exe up to date
[21:41:10] I/update - geckodriver: file exists C:\Users\francisp\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.30.0.zip
[21:41:10] I/update - geckodriver: unzipping geckodriver-v0.30.0.zip
[21:41:10] I/update - geckodriver: geckodriver-v0.30.0.exe up to date
Can somebody help please? TIA
Tried this below and it worked.
webdriver-manager update --ie --versions.ie=3.9.0
instead of
webdriver-manager update --ie
Also while starting the server, you have to use
webdriver-manager start --ie --versions.ie=3.9.0
instead of
webdriver-manager start
Related
My gatsby website was running locally without problems and when I tried to restart it today without updating the code, the npm run develop build succeeds. However, when I try to open localhost in browser, this error is thrown in the terminal:
success Building development bundle - 16.014s
success Writing page-data.json files to public directory - 0.103s - 3/11
106.93/s
(node:2043) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of undefined
at parseError (/Users/sp/Documents/jamstack/training/frontend/node_modules/gatsby/src/utils/dev-ssr/render-dev-html-child.js:52:26)
at /Users/sp/Documents/jamstack/training/frontend/node_modules/gatsby/src/utils/dev-ssr/render-dev-html-child.js:106:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2043) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejeæction, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:2043) [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.
I can't seem to work out where this error is coming from as I did not change any of the code that was working earlier.
Does anyone have an idea?
There's no detail about the running version of Gatsby but according to this GitHub thread, while the issue is being fixed in the next release you can bypass it by installing a canary version:
npm i gatsby#webpack-split-fix
I am trying to run command npm run build. I am getting error
`make i info Invoking build target
make i info Invoking dist/build target
(node:15892) UnhandledPromiseRejectionWarning: undefined
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15892) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:15892) [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.
make × ERR not found: make-$(SOURCE_FILES)`
Please anyone can help me to solve the problem.
I finally solved it installing make command using chocolaty in my window. I was getting error because make was not installed on my windows (I had no idea regarding that make is window's command not NodeJs').
This post helped me to solve my problem.
How to install and use "make" in Windows?
I have a problem using Selenium on IE.
When I run npm run e2e:desktop command, Selenium launch and close immediately an IE page. Then, I got this error:
E/runner - Unable to start a WebDriver session.
E/launcher - Error: WebDriverError: Invalid timeout type specified: ms
I launch this command to install selenium:
webdriver-manager update --standalone=false --chrome=false --gecko=false --versions.standalone=3.4.0 --versions.chrome=2.25
Stack:
IE : 11.0.960019463
Protractor : 5.1.1
Selenium Server Stadalone : 3.141.59
IE web driver : 3.14.0
Any idea?
It seems a bug of protractor 5.0.0+ dependencies. You could try to downgrade protractor from 5.1.1 to 5.0.0. Or you could try the following command to update and start the webdriver manager with a specific version:
webdriver-manager clean
webdriver-manager update --ie --versions.standalone=3.4.0 --versions.ie=3.4.0
webdriver-manager start --versions.standalone=3.4.0
For more information, you could refer to this thread.
I am using webdriver-manager 12.0.6 both globally and within my local project.
When I run webdriver-manager update--standalone false locally I get unhandled promise rejection errors:
$ node_modules/.bin/webdriver-manager update --standalone false
webdriver-manager: using local installed version 12.0.6
(node:13792) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'C:\Users\<MY_USERNAME>\src\<MY_PROJECT>\api\ClientApp\node_modules\webdriver-manager\selenium\chrome-response.xml'
(node:13792) [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.
(node:13792) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: ENOENT: no such file or directory, open 'C:\Users\<MY_USERNAME>\src\<MY_PROJECT>\api\ClientApp\node_modules\webdriver-manager\selenium\gecko-response.json'
When I run the same command globally everything works without issue.
$ webdriver-manager clean
[12:49:15] I/file_manager - removed chromedriver_2.37.exe
[12:49:15] I/file_manager - removed chromedriver_2.37.zip
[12:49:15] I/file_manager - removed geckodriver-v0.20.0.exe
[12:49:15] I/file_manager - removed geckodriver-v0.20.0.zip
[12:49:15] I/file_manager - removed gecko-response.json
[12:49:15] I/file_manager - removed standalone-response.xml
$ webdriver-manager update --standalone false
[12:49:24] I/update - chromedriver: unzipping chromedriver_2.37.zip
[12:49:25] I/update - geckodriver: unzipping geckodriver-v0.20.0.zip
I have tried deleting node_modules and rerunning yarn. Not sure what else is at play here. What steps can I take to further troubleshoot this?
Delete the folder:
C:\Users\<MY_USERNAME>\src\<MY_PROJECT>\api\ClientApp\node_modules\webdriver-manager\selenium
Run the webdriver-manager update --standalone false again in new opened cmd window
Experts,
I have following configuration
nvm - 0.33.0
node - 7.5.0
npm - 4.1.2
webdriver-manager - 12.0.6
I am behind a corporate proxy and I use cntlm. when I run the following command
webdriver-manager update --standalone --ignore_ssl --verbose --proxy="http://localhost:3190/"
I get following output
webdriver-manager: using global installed version 12.0.6
[15:08:27] I/http_utils - ignoring SSL certificate
[15:08:27] I/http_utils - ignoring SSL certificate
[15:08:27] I/http_utils - ignoring SSL certificate
(node:4132) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: response status code is not 200
(node:4132) 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.
[15:08:28] I/update - chromedriver: unzipping chromedriver_2.33.zip
[15:08:28] I/update - chromedriver: setting permissions to 0755 for /home/ua70vv/.nvm/versions/node/v7.5.0/lib/node_modules/webdriver-manager/selenium/chromedriver_2.33
[15:08:29] I/http_utils - ignoring SSL certificate
[15:08:34] I/update - geckodriver: unzipping geckodriver-v0.19.0.tar.gz
[15:08:34] I/update - geckodriver: setting permissions to 0755 for /home/ua70vv/.nvm/versions/node/v7.5.0/lib/node_modules/webdriver-manager/selenium/geckodriver-v0.19.0
I see there is a warning.
After this when I try to run "webdriver-manager start", I still get error complaining following
E/start - Selenium Standalone is not present. Install with webdriver-manager update --standalone
Please suggest what is the error here.
Thanks in advance!
--ignore_ssl Ignore SSL certificates
--proxy Proxy to use for the install or update command
Like webdriver-manager update --ignore_ssl
This will solve your problem.
seems the standalone.jar download site not avaiable. https://selenium-release.storage.googleapis.com/
you can use java cmd to start selenium server, save below content into a start-selenium-server.cmd file on window, and change the versions and driver_home to yours. Double click it to run.
set standalone_version=3.4.0
set chromedriver_version=2.32
set geckodriver_version=v0.19.0
set driver_home=C:\Tool\npm-global\node_modules\protractor\node_modules\webdriver-manager\selenium
java -Dwebdriver.chrome.driver=%driver_home%\chromedriver_%chromedriver_version%.exe -Dwebdriver.gecko.driver=%driver_home%\geckodriver-%geckodriver_version%.exe -jar %driver_home%\selenium-server-standalone-%standalone_version%.jar -port 4444