VisualSelector & BrowserSteps - Scraper improvements, remove duplicate code

This commit is contained in:
dgtlmoon
2022-11-25 10:45:38 +01:00
parent 326b7aacbb
commit 69756f20f2
3 changed files with 6 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ for (var i = 0; i < elements.length; i++) {
left: Math.floor(bbox['left']),
top: Math.floor(bbox['top']),
tagName: (elements[i].tagName) ? elements[i].tagName.toLowerCase() : '',
tagtype: (elements[i].type) ? elements[i].type.toLowerCase() : ''
tagtype: (elements[i].tagName == 'INPUT' && elements[i].type) ? elements[i].type.toLowerCase() : ''
});
}