You can do console.log(dataQaElements[i])
in the loop and look up in the console (F12), which properties are available. Anyway, it’s:
let elementName = dataQaElements[i].tagName.toLowerCase()
let type = dataQaElements[i].type
CLICK HERE to find out more related problems solutions.