QualityOps / wdio-timeline-reporter

34 stars 19 forks source link

Screenshots not working #20

Closed senovsky closed 5 years ago

senovsky commented 5 years ago

Hi, in the latest WebDriverIO v5.11.6 using Cucumber-boilerplate, the report is created correctly, but without screenshots. I'm getting the following error:

[chrome  windows nt #0-8] saveScreenshot expects a filepath of type string and ".png" file ending
[chrome  windows nt #0-8] Error: saveScreenshot expects a filepath of type string and ".png" file ending
[chrome  windows nt #0-8]     at Browser.saveScreenshot (C:\Users\something\e2e\node_modules\webdriverio\build\commands\browser\saveScreenshot.js:40:11)
[chrome  windows nt #0-8]     at Browser.runCommand (C:\Users\something\e2e\node_modules\@wdio\sync\build\wrapCommand.js:37:32)
[chrome  windows nt #0-8]     at Browser.runCommand (C:\Users\something\e2e\node_modules\@wdio\sync\build\wrapCommand.js:31:24)
[chrome  windows nt #0-8]     at Browser.<anonymous> (C:\Users\something\e2e\node_modules\@wdio\sync\build\wrapCommand.js:53:31)
[chrome  windows nt #0-8]     at World.saveScreenshot (C:\Users\something\e2e\steps/given.js:146:17)
[chrome  windows nt #0-8]     at Promise (C:\Users\something\e2e\node_modules\@wdio\sync\build\index.js:65:22)
[chrome  windows nt #0-8]     at World.executeSync (C:\Users\something\e2e\node_modules\@wdio\sync\build\index.js:63:10)
[chrome  windows nt #0-8]     at C:\Users\something\e2e\node_modules\@wdio\sync\build\runFnInFiberContext.js:21:27

Environment:

benzaremean commented 5 years ago

Hi Could you provide details of the os? Sorry I haven't created an issues template

senovsky commented 5 years ago

Environment info added.

benzaremean commented 5 years ago

Thanks for the info I'm guessing the issue might be the file you saved was a jpeg. I'll have a look thanks. Alternatively you can try use a .png

I might be wrong

benzaremean commented 5 years ago

@senovsky the error is from webdriverio. will close this for now