# How to get text of element

**URL:** <https://discuss.appium.io/t/how-to-get-text-of-element/24562>\
**Category:** Issues/Bugs\
**Created:** [December 12, 2018, 10:30pm UTC](https://discuss.appium.io/t/how-to-get-text-of-element/24562 "2018-12-12T22:30:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill1](https://discuss.appium.io/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@bill1](https://discuss.appium.io/u/bill1)\
**Post date:** [December 12, 2018, 10:30pm UTC](https://discuss.appium.io/t/how-to-get-text-of-element/24562/1 "2018-12-12T22:30:09Z")

</div>

I have some legacy c# code that uses “myAndroidElement.GetAttribute(“name”);” to get the text of the element .

After upgrading my Selenium.WebDriver and Selenium.Support and Appium packages ,  
I get error :  
“OpenQA.Selenium.WebDriverException: Method is not implemented” and it is originating at the GetAttribute method .

Ok , I get that this function is probably deprecated or something … but how then do I get the text of the element ?  
I have tried myAndroidElement.Text but it is returning empty string .  
I have tried javascript.ExecuteScript and same thing “Method is not implemented” …  
Tried different package versions , nothing works .

Only thing that works is to revert to very old packages but it is not an option for us .

---

<div class="post-metadata">

**Author:** ![bill1](https://discuss.appium.io/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@bill1](https://discuss.appium.io/u/bill1)\
**Post date:** [December 14, 2018, 6:04pm UTC](https://discuss.appium.io/t/how-to-get-text-of-element/24562/2 "2018-12-14T18:04:15Z")

</div>

Nobody knows how to get the text of an element ?

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [December 15, 2018, 8:13pm UTC](https://discuss.appium.io/t/how-to-get-text-of-element/24562/3 "2018-12-15T20:13:38Z")

</div>

With Java client it is: elelement.getText();

---

<div class="post-metadata">

**Author:** ![bill1](https://discuss.appium.io/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@bill1](https://discuss.appium.io/u/bill1)\
**Post date:** [December 15, 2018, 8:42pm UTC](https://discuss.appium.io/t/how-to-get-text-of-element/24562/4 "2018-12-15T20:42:28Z")

</div>

Ok , I guess I will have to find out how to open a ticket or something .
