def attribute_values
      result = element_call { execute_js(:attributeValues, @element) }
      result.keys.each do |key|
        next unless key == key[/[a-zA-Z\-]*/]

        result[key.tr('-', '_').to_sym] = result.delete(key)
      end
      result
    end
def attribute_values
      result = element_call { execute_js(:attributeValues, @element) }
      result.keys.each do |key|
        next unless key == key[/[a-zA-Z\-]*/]

        result[key.tr('-', '_').to_sym] = result.delete(key)
      end
      result
    end
Returns all attribute values. Attributes with special characters are returned as String,
 rest are returned as a Symbol.

 @return [Hash]

 @example
   browser.pre(id: 'rspec').attribute_values
   #=> {class:'ruby', id: 'rspec' }