.selenide-core.6.11.2.source-code.get-element-attributes.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenide-core Show documentation
Show all versions of selenide-core Show documentation
Selenide = concise API for Selenium WebDriver
(function(element) {
const attributesMap = {};
const attrs = element.attributes;
for (let i = 0; i < attrs.length; i++) {
const a = attrs[i];
if (a.name !== 'style') {
attributesMap[a.name] = a.value;
}
}
if (element.value) attributesMap['value'] = element.value;
if (element.type) attributesMap['type'] = element.type;
return attributesMap;
})(arguments[0])
© 2015 - 2025 Weber Informatics LLC | Privacy Policy