javascript.parentElementIE.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!
var elem=arguments[0].parentElement,result=[];
while (elem != null){
addElement(elem);
if(elem.parentElement == null || elem.parentElement.nodeName == 'BODY' || elem.parentElement.nodeName == 'HTML'){
break;
}
elem = elem.parentElement;
};
function addElement(e){
var r = e.getBoundingClientRect();
var numeric = e.getAttribute('inputmode')=='numeric';
var password = e.getAttribute('type')=='password';
result[result.length] = [e, e.tagName, numeric, password, r.top+0.0001, r.left+0.0001, r.width+0.0001, r.height+0.0001, r.left+0.0001, r.top+0.0001, 0.0001, 0.0001, {}, false];
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy