Relative Content

Tag Archive for node.jstestingautomationappium

“WebDriverIO and Appium Service Fails with Error ‘Appium Exited Before Timeout'”

enter image description hereI am encountering an issue while running WebDriverIO tests with Appium. The service fails during the ‘onPrepare’ hook, and Appium exits before the timeout.
`2024-08-06T11:01:46.324Z DEBUG @wdio/utils:initializeServices: initialize service “appium” as NPM package
2024-08-06T11:01:46.484Z INFO @wdio/cli:launcher: Run onPrepare hook
2024-08-06T11:01:46.544Z INFO @wdio/appium-service: Will spawn Appium process: cmd /c node C:Usersakriviawebdriverio-appium-v8node_modulesappiumindex.js –base-path /
2024-08-06T11:01:54.848Z ERROR @wdio/appium-service: WARN
2024-08-06T11:01:54.850Z ERROR @wdio/cli:utils: A service failed in the ‘onPrepare’ hook
Error: WARN
at Socket. (file:///C:/Users/akrivia/webdriverio-appium-v8/node_modules/@wdio/appium-service/build/launcher.js:174:28)
at Object.onceWrapper (node:events:634:26)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)