javascript.elementKeysAndAttributes.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ats-automated-testing Show documentation
Show all versions of ats-automated-testing Show documentation
Code generator library to create and execute GUI automated tests
The newest version!
const element = arguments[0];
var attrib, textValue, result = [];
for(var k in element){
let t = typeof element[k];
if(t == 'number' || t == 'boolean' || t == 'string'){
result.push(k);
}
}
Array.prototype.slice.call(element.attributes).forEach(function(attrib) {
if(result.indexOf(attrib.name) == -1){
result.push(attrib.name);
}
});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy