# \[WebUI\] Get Text

**URL:** <https://forum.katalon.com/t/webui-get-text/16641>\
**Category:** Miscellaneous\
**Tags:** new-doc-request\
**Created:** [January 4, 2019, 9:03am UTC](https://forum.katalon.com/t/webui-get-text/16641 "2019-01-04T09:03:54Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mpurohit](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mpurohit](https://forum.katalon.com/u/mpurohit)\
**Post date:** [May 10, 2019, 7:14am UTC](https://forum.katalon.com/t/webui-get-text/16641/9 "2019-05-10T07:14:33Z")

</div>

Done, here’s the link.

> [@WebUI.getText not trimming trailing space](http://forum.katalon.com/t/webui-gettext-not-trimming-trailing-space/25054):
>
> I’ve come across an issue where WebUI.getText is not able to trim the trailing space in actual text. The actual text rendered in webpage HTML has &nbsp at the end. This is causing the trailing space. I thought WebUI.getText will take care of it but it didn’t work. Example: Actual Text in webpage HTML: sample text 1&nbsp Actual Text grabbed by WebUI.getText : "sample text 1 " Expected Text in Test Case: “sample text 1” Expected Fix: WebUI.getText must remove all leading and trail…

---

_[View the full topic](https://forum.katalon.com/t/webui-get-text/16641)._
