# Locator property 'contains' no longer works in 6.3.x

**URL:** <https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584>\
**Category:** Bug Report\
**Tags:** critical, katalon-studio, bugs-report\
**Created:** [September 4, 2019, 4:23pm UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584 "2019-09-04T16:23:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amanda\_Perkins1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/amanda_perkins1/32/3843_2.png) [@Amanda\_Perkins1](https://forum.katalon.com/u/Amanda_Perkins1)\
**Post date:** [September 4, 2019, 4:23pm UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/1 "2019-09-04T16:23:28Z")

</div>

As of 6.3.x, it appears that ‘contains’ in the object properties seems to not work in the same way it did before. An example I have is that my text for an object will contain a particular word/phrase. In previous versions, I could just have the word/phrase as contains and the object would be located. As of 6.3.x, it seems that the object properties now requires more in order to find the object - ie add’l spaces and words rather than allowing just the one particular word/phrase. This has caused rewrites to current tests that were working prior to the 6.3.x release.

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/b/ba2dc12d7d8a556ad3ae48325168cbd1059febcd.png)

---

<div class="post-metadata">

**Author:** ![matt.piasecki](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/matt.piasecki/32/16103_2.png) [@matt.piasecki](https://forum.katalon.com/u/matt.piasecki)\
**Post date:** [September 4, 2019, 10:51pm UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/3 "2019-09-04T22:51:57Z")

</div>

The contains object condition is working fine for me (v6.3.3). Try using absolute equality or alternatively use regular expressions if you must use partial equality.

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

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [September 5, 2019, 1:44pm UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/4 "2019-09-05T13:44:30Z")

</div>

@ThanhTo @duyluong

1. Was there a change between `6.2.x` and `6.3.x` that might account for this behavior?

2. Can we get some traction on this? (A broken UX in this part of the UI should be fixed and uplifted to 7.x, don’t you think?)

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [September 5, 2019, 3:19pm UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/5 "2019-09-05T15:19:46Z")

</div>

Hi @Amanda_Perkins1

I will look into this and let you know.

Cheers !

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [September 10, 2019, 7:14am UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/6 "2019-09-10T07:14:08Z")

</div>

Hi @Amanda_Perkins1

Can you give me a use case where this problem surfaces ? How did things go in 6.2.0 ?

Cheers !

---

<div class="post-metadata">

**Author:** ![Amanda\_Perkins1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/amanda_perkins1/32/3843_2.png) [@Amanda\_Perkins1](https://forum.katalon.com/u/Amanda_Perkins1)\
**Post date:** [September 18, 2019, 3:03pm UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/7 "2019-09-18T15:03:59Z")

</div>

I used to be able to use `text contains save` if the button had the text ‘save’ in it. Now, the button has changed to have leading and trailing spaces around the text ‘save’ and the locator will not find the button based on ‘contains’. I had to change the text to equals and then copy and paste the text of the button, with the leading and trailing spaces, into the text field.

So, for me, the ‘contains’ is no longer working as it is requiring me to use ‘equals’ and have the entire string with spaces to locate the object.

---

<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:** [September 16, 2020, 2:31pm UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/8 "2020-09-16T14:31:46Z")

</div>

Automatically bumped on September 16, 2020, 2:31pm UTC



---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [October 2, 2020, 10:04am UTC](https://forum.katalon.com/t/locator-property-contains-no-longer-works-in-6-3-x/32584/9 "2020-10-02T10:04:14Z")

</div>

Closed on October 2, 2020, 10:04am UTC


