# I'm unable to get Text value from Input field

**URL:** <https://forum.katalon.com/t/im-unable-to-get-text-value-from-input-field/43839>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [May 25, 2020, 8:52am UTC](https://forum.katalon.com/t/im-unable-to-get-text-value-from-input-field/43839 "2020-05-25T08:52:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luan\_nguyen](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@luan\_nguyen](https://forum.katalon.com/u/luan_nguyen)\
**Post date:** [May 25, 2020, 8:52am UTC](https://forum.katalon.com/t/im-unable-to-get-text-value-from-input-field/43839/1 "2020-05-25T08:52:40Z")

</div>

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

I’ve tried WebUI.getAttribute with value such as: Text, innerText or Value does not work. I can see the value within Accessibility as screenshot attached but I cant get it

Does anyone helps please?

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [May 25, 2020, 2:04pm UTC](https://forum.katalon.com/t/im-unable-to-get-text-value-from-input-field/43839/2 "2020-05-25T14:04:49Z")

</div>

You are using the correct WebUI method, `getAttribute()` but I suspect you are not identifying the element successfully or perhaps not identifying the `value` attribute correctly.

Your code should look something like this

```auto
// Get the VALUE attribute of the test object
String val = WebUI.getAttribute(findTestObject("path-to-test-object"), "value")
println "Value is: " + val

```

In future, when posting an issue like this, make sure you post all relevant information. Please follow this advice:

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you-my-test-is-broken-nothing-works-updated-nov-2019/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …
