I’m receiving an error ‘parent is not a function’
The code is as follows
Const path = require(‘path’)
Const takeScreenshot = function(page, test){
Const screen_path = path.normalize(path.join(‘./screenshot/‘, test.test.parent.title))
test.currentTitke
//take screenshot
}