# Verify element text failed

**URL:** <https://forum.katalon.com/t/verify-element-text-failed/89716>\
**Category:** Miscellaneous\
**Created:** [June 8, 2023, 8:52am UTC](https://forum.katalon.com/t/verify-element-text-failed/89716 "2023-06-08T08:52:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shakkir](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shakkir/32/23930_2.png) [@Shakkir](https://forum.katalon.com/u/Shakkir)\
**Post date:** [June 8, 2023, 8:52am UTC](https://forum.katalon.com/t/verify-element-text-failed/89716/1 "2023-06-08T08:52:08Z")

</div>

Caused by: com.kms.katalon.core.exception.StepFailedException: Actual text ‘Title\_Test\_QA’ and expected text ‘Title\_test\_QA’ of test object

why my test fails like this?

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [June 8, 2023, 9:24am UTC](https://forum.katalon.com/t/verify-element-text-failed/89716/2 "2023-06-08T09:24:17Z")

</div>

Please re-read this topic:

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919/1):
>
> 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 …

and act accordingly.

---

<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:** [June 8, 2023, 11:31am UTC](https://forum.katalon.com/t/verify-element-text-failed/89716/3 "2023-06-08T11:31:52Z")

</div>

`Title_Test_QA`  
`Title_test_QA`

You should find the difference: “T” != “t”

You should read the given message carefully before asking for help.

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [June 9, 2023, 9:40pm UTC](https://forum.katalon.com/t/verify-element-text-failed/89716/4 "2023-06-09T21:40:14Z")

</div>

If you want to compare the two phrases without matching letter case (uppercase versus lowercase), then you can use Regular Expression. As an example:

```auto
def testString = "Title_Test_QA" // here we have uppercase T in Test

WebUI.verifyMatch(testString, "(?i)Title_test_QA", true) // and we match it against a lowercase t in test by ignoring the letter case.

```

```auto

```
