Assistance with starting webdriverio v7 and v8 and wdio video reporter v4 and v5 #122
-
Hi,
At the top of my wdio.conf.js file i have the following code
and in the reporters section I have
when in the reporters section, video is a string or if video is a variable I get the below error
When it comes to Version 5 of wdio-video-reporter, I am getting an error with latest for wdio-video-reporter V5.1.0 i'm getting a "cant find module" error
tried the following change also to no avail
not sure what to change in my config files to get the latest versions of wdio-video-reporter |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I'm trying to use but I get following error: node_modules\wdio-video-reporter\dist\wdio-video-reporter.mjs:1 tried with 5.1.4 video reporter https://www.npmjs.com/package/wdio-video-reporter |
Beta Was this translation helpful? Give feedback.
-
@troyyer, the first error is saying reporters: ['spec'
,'junit'
- [video,
+ ['video',
{
saveAllVideos: true, You don't need to import the module in wdio.conf.js it just needs to be installed as a I tried running your example in a codespace and this worked without an error from the reporters: reporters: ['spec',
'junit',
['video', {
saveAllVideos: true,
videoSlowdownMultiplier: 20,
addExcludedActions: [],
logLevel: "silent",
}],
], |
Beta Was this translation helpful? Give feedback.
@troyyer, the first error is saying
video
needs to be a string:https://github.com/troyyer/wdiov8-sample-for-video-reporter/blob/06b32d200a909c1158c8b1c0f0e74505442378c0/wdio.conf.js#L143-L152
You don't need to import the module in wdio.conf.js it just needs to be installed as a
devDependency
. You've done that.I tried running your example in a codespace and this worked without an error from the reporters: