katalon-studio / kr-cli

A public repo for Katalon Recorder Command-Line Runner
1 stars 2 forks source link

When I try to run katalon studio on the command line for chrome it complains about chromedriver #6

Open SondreRopstad opened 3 years ago

SondreRopstad commented 3 years ago

The exact message is For windows: [ERROR] Error message: Error: SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 90 Current browser version is 92.0.4515.131 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (node:10672) UnhandledPromiseRejectionWarning: SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 90 Current browser version is 92.0.4515.131 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe at Object.throwDecodedError (C:\Notes\working_folder\html\tests\node_modules\selenium-webdriver\lib\error.js:517:15) at parseHttpResponse (C:\Notes\working_folder\html\tests\node_modules\selenium-webdriver\lib\http.js:642:13) at Executor.execute (C:\Notes\working_folder\html\tests\node_modules\selenium-webdriver\lib\http.js:568:28) at processTicksAndRejections (internal/process/task_queues.js:95:5)

For linux: [ERROR] Error message: Error: SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 90 Current browser version is 92.0.4515.131 with binary path /usr/bin/google-chrome (node:2454) UnhandledPromiseRejectionWarning: SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 90 Current browser version is 92.0.4515.131 with binary path /usr/bin/google-chrome at Object.throwDecodedError (/home/sondrex/Desktop/stuff/node_modules/selenium-webdriver/lib/error.js:517:15) at parseHttpResponse (/home/sondrex/Desktop/stuff/node_modules/selenium-webdriver/lib/http.js:642:13) at Executor.execute (/home/sondrex/Desktop/stuff/node_modules/selenium-webdriver/lib/http.js:568:28) at process._tickCallback (internal/process/next_tick.js:68:7)

After installing node and np I ran the command "npm i katalon-recorder-cli" and successfully got the katalon recorder cli installed. First I did this on windows, following the instructions and running the command "C:\Notes\working_folder\html\tests\node_modules.bin\kr-cli.cmd run chrome 'step_1_prod_tests.html' --report '.\'", resulting in the windows error.

I do have version 92 of chrome installed, so I thought maybe the problem was the version of chromeDriver. So I installed it on linux, and after some wraggling got the same result there. Then I installed version 92.0.1 (npm i chromedriver@92.0.1) of chromeDriver, but still got the same message (using the command "node_modules/.bin/kr-cli run chrome '../step_1_prod_tests.html' --report '../reports'").

The file package-lock.json specified the version of chromedriver as 92.0.1 and chromedriver's package.json's id equals "@92.0.1".