# \[WS\] Verify Element Text

**URL:** <https://forum.katalon.com/t/ws-verify-element-text/16775>\
**Category:** Miscellaneous\
**Created:** [January 4, 2019, 11:11am UTC](https://forum.katalon.com/t/ws-verify-element-text/16775 "2019-01-04T11:11:09Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [January 4, 2019, 11:11am UTC](https://forum.katalon.com/t/ws-verify-element-text/16775/1 "2019-01-04T11:11:09Z")

</div>

* * *
This is a companion discussion topic for the original entry at [https://docs.katalon.com/katalon-studio/docs/ws-verify-element-text.html](https://docs.katalon.com/katalon-studio/docs/ws-verify-element-text.html)

---

<div class="post-metadata">

**Author:** ![santi\_hutapea](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/santi_hutapea/32/16104_2.png) [@santi\_hutapea](https://forum.katalon.com/u/santi_hutapea)\
**Post date:** [June 9, 2021, 11:52pm UTC](https://forum.katalon.com/t/ws-verify-element-text/16775/2 "2021-06-09T23:52:16Z")

</div>

hi, i tried to send this keyword :

> WS.verifyElementText(response\_createAgenda, ‘content.test.location’, " A City")

but i got err :

> Unable to verify element text (Root cause: groovy.lang.MissingMethodException: No signature of method: java.lang.String.text() is applicable for argument types: () values:

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [September 25, 2021, 8:40am UTC](https://forum.katalon.com/t/ws-verify-element-text/16775/3 "2021-09-25T08:40:29Z")

</div>

I would argue that users should not use this `WS.verifyElementText` keyword for XML response. This keyword is very likely to confuse you. I wrote my opinion in the following post.

> [@Not able to validate SOAP call response](http://forum.katalon.com/t/not-able-to-validate-soap-call-response/58330/19):
>
> Quote from the offical document: [https://docs.katalon.com/katalon-studio/docs/handle-response-messages.html](https://docs.katalon.com/katalon-studio/docs/handle-response-messages.html) XML data are similar both in the structure and the way we define element locator , our expected info may come from: the attribute of XML tag (in example below, " no" is an attribute of " contacts" tag) or from inner child tag, you can use keywords for handling text (e.g. verifyElementText) or property (e.g. verifyElementPropertyValue) respectively. [[…](https://raw.githubusercontent.com/katalon-studio/docs-images/master/katalon-studio/docs/handle-response-messages/2.png)
