mardi 1 août 2023

Protractor / AngularJS / Tentative de démarrage du serveur Selenium par "npx webdriver-manager start"

 C:\TEMP\_mydapps\angular-seed>npx webdriver-manager start

[17:06:35] I/start - java -Dwebdriver.chrome.driver=C:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.46.exe -jar C:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-4.0.0-alpha-2.zip.jar -port 4444

[17:06:35] I/start - seleniumProcess.pid: 5272

Error: Invalid or corrupt jarfile C:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-4.0.0-alpha-2.zip.jar

[17:06:35] I/start - Selenium Standalone has exited with code 1

Tentative de résolution KO

C:\TEMP\_mydapps\angular-seed>npx webdriver-manager clean

[17:11:01] I/file_manager - removed chromedriver_2.46.exe

[17:11:01] I/file_manager - removed chromedriver_2.46.zip

[17:11:01] I/file_manager - removed selenium-server-standalone-4.0.0-alpha-2.zip.jar

[17:11:01] I/file_manager - removed chrome-response.xml

[17:11:01] I/file_manager - removed standalone-response.xml

[17:11:01] I/file_manager - removed update-config.json


C:\TEMP\_mydapps\angular-seed>npx webdriver-manager update

[17:11:18] I/config_source - curl -oC:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/

[17:11:18] I/config_source - curl -oC:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/

[17:11:18] I/config_source - curl -oC:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases

[17:11:18] I/downloader - curl -oC:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium/geckodriver-v0.33.0.zip https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-win64.zip

[17:11:18] I/downloader - curl -oC:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium/chromedriver_2.46.zip https://chromedriver.storage.googleapis.com/2.46/chromedriver_win32.zip

[17:11:19] I/downloader - curl -oC:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium/selenium-server-standalone-4.0.0-alpha-2.zip.jar https://selenium-release.storage.googleapis.com/4.0/selenium-server-standalone-4.0.0-alpha-2.zip

[17:11:19] I/update - geckodriver: unzipping geckodriver-v0.33.0.zip

[17:11:19] I/update - chromedriver: unzipping chromedriver_2.46.zip


C:\TEMP\_mydapps\angular-seed>npx webdriver-manager start

[17:11:28] I/start - java -Dwebdriver.chrome.driver=C:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.46.exe -Dwebdriver.gecko.driver=C:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.33.0.exe -jar C:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-4.0.0-alpha-2.zip.jar -port 4444

[17:11:28] I/start - seleniumProcess.pid: 13224

Error: Invalid or corrupt jarfile C:\TEMP\_mydapps\angular-seed\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-4.0.0-alpha-2.zip.jar

[17:11:28] I/start - Selenium Standalone has exited with code 1