# Katalon studio 9.5.0, How to get a Text value from class “android.widget.TextView” in Android Mobile Object

**URL:** <https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936>\
**Category:** Mobile Testing\
**Tags:** mobile-spy, mobile-testing, mobile-object, katalon-studio\
**Created:** [June 27, 2024, 7:28am UTC](https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936 "2024-06-27T07:28:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kellybookingtogo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kellybookingtogo/32/23870_2.png) [@kellybookingtogo](https://forum.katalon.com/u/kellybookingtogo)\
**Post date:** [June 27, 2024, 7:28am UTC](https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936/1 "2024-06-27T07:28:18Z")

</div>

![WhatsApp Image 2024-06-27 at 14.09.39](https://europe1.discourse-cdn.com/katalon/original/3X/d/f/dfabaee6ed8d21feb6414ef8d6bad944c23c4b2a.jpeg)  
Hello Katalon Community, its my first posting 😁

How to get a Text value from class “android.widget.TextView” in Android Mobile Object  
Katalon Studio 9.5.0  
Mobile Object Spy

Thank u 😁

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [June 27, 2024, 7:28am UTC](https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936/2 "2024-06-27T07:28:18Z")

</div>

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

---

<div class="post-metadata">

**Author:** ![Dan\_Bown](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dan_bown/32/20464_2.png) [@Dan\_Bown](https://forum.katalon.com/u/Dan_Bown)\
**Post date:** [June 29, 2024, 11:05am UTC](https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936/3 "2024-06-29T11:05:57Z")

</div>

The particular elements highlighted don’t appear to have text - I assume these are the ‘-’ or ‘+’ buttons? You have other elements that you could use ie the TextView class with text after it. Keep the same format if locator as the one in the pic, but just use sensible text rather than the icon currently used

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [July 1, 2024, 4:18am UTC](https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936/4 "2024-07-01T04:18:09Z")

</div>

Hi @kellybookingtogo,

Welcome to our community. Can you please try this guide: [[Mobile] Get Text | Katalon Docs](https://docs.katalon.com/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-get-text)? Hope this can help

---

<div class="post-metadata">

**Author:** ![kellybookingtogo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kellybookingtogo/32/23870_2.png) [@kellybookingtogo](https://forum.katalon.com/u/kellybookingtogo)\
**Post date:** [July 2, 2024, 8:50am UTC](https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936/5 "2024-07-02T08:50:50Z")

</div>

thank you for the response. already solved, using different Locator Strategy to XPATH.

---

<div class="post-metadata">

**Author:** ![kellybookingtogo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kellybookingtogo/32/23870_2.png) [@kellybookingtogo](https://forum.katalon.com/u/kellybookingtogo)\
**Post date:** [July 2, 2024, 8:50am UTC](https://forum.katalon.com/t/katalon-studio-9-5-0-how-to-get-a-text-value-from-class-android-widget-textview-in-android-mobile-object/135936/6 "2024-07-02T08:50:52Z")

</div>

thank you for the response. already solved, using different Locator Strategy to XPATH.
