All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.selenide-core.6.11.2.source-code.get-element-attributes.js Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
(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