# Get Attribute as null while there is value?

**URL:** <https://forum.katalon.com/t/get-attribute-as-null-while-there-is-value/19532>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [February 18, 2019, 8:34am UTC](https://forum.katalon.com/t/get-attribute-as-null-while-there-is-value/19532 "2019-02-18T08:34:35Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [February 19, 2019, 5:39pm UTC](https://forum.katalon.com/t/get-attribute-as-null-while-there-is-value/19532/13 "2019-02-19T17:39:55Z")

</div>

Wow, that is definitely a problem… I’ve always thought that if it were going to be just _one_ method, they should have called it getProperty() instead, because attribute key-value pairs are stored as a property anyway:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/1/145dca2515e2f836be2fc0fd599b2faf4a5e9716.png)

In fact, I’m pretty sure that getAttribute() operates solely against properties, and just checks the “attributes” property to find attribute values for a node. Maybe this is what you’re already doing, but I wonder if you could check the true value property:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/e/e833c6ab5ee994ed70132a60a22c42b8c86a0332.png)

against the “value” map entry in the attribute property:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/1/16103ede788d537101ce0427e9600706b586fa7b.png)

---

_[View the full topic](https://forum.katalon.com/t/get-attribute-as-null-while-there-is-value/19532)._
