feat(webapi): saveScreenshot with custom path by kobenguyent · Pull Request #5469 · codeceptjs/CodeceptJS
@kobenguyent we can use absolute paths to handle this
if provided path is absolute -> save into it
so use could use it like this:
I.saveSceenshot(path.join(global.mySpecialPath, 'screenshot1'))
I dont see a need for another very similar method
it will be confusing to users and AI agents
Just detect global paths and provide such solution in UI
If user wants different ways they can create their own similar methods like
I.saveScreenshotToMyPath()
I.saveScreenshotToMyOtherPath()
inside custom steps file