But when I run my script it shows the following error :
Could not load plugin wdio from module ‘./plugin/wdio’:
Couldn’t initialize service selenium-standalone from wdio plugin config.
It should be available either in ‘@wdio/selenium-standalone-service’ package
Thank you for your quick response.
I installed your command and also installed codeceptjs in local.
But still I am getting the same error.
Is there any other idea?
Thank you for your message.
I used this command got the following error.
Could not load plugin wdio from module ‘./plugin/wdio’:
Couldn’t initialise “@wdio/selenium-standalone-service”.
Error: Cannot find module ‘@wdio/logger’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (C:\Users…AppData\Roaming\npm\node_modules@wdio\selenium-standalone-service\build\launcher.js:8:38)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
@unreal2frag I used the same configuration what you have provided above . Am facing the below issue.Could you please help
Error in “Could not request headers from https://selenium-release.storage.googleapis.com/selenium-3.141.59/selenium-server-standalone-3.141.59.jar: 404, continue
without checking for latest version.”.
See more details below:
2022-01-11T07:55:51.475Z ERROR @wdio/selenium-standalone-service: Error: Selenium exited before it could start with code 1
Stdout:
Stderr: Error: Invalid or corrupt jarfile D:\codeceptJS_WDIO\node_modules\selenium-standalone.selenium\selenium-server\3.141.59\selenium-server.jar