javascript.elementTextData.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 textValue, result = {};
textValue = element.innerText;
if(textValue){
result['text'] = textValue.trim().replace(/\xA0/g," ").replace(/\n+/g," ");
}else{
result['text'] = "";
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy