# How can I get the object with my custom tag and custom attribute by object spy directly

**URL:** <https://forum.katalon.com/t/how-can-i-get-the-object-with-my-custom-tag-and-custom-attribute-by-object-spy-directly/30617>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [August 1, 2019, 3:15am UTC](https://forum.katalon.com/t/how-can-i-get-the-object-with-my-custom-tag-and-custom-attribute-by-object-spy-directly/30617 "2019-08-01T03:15:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kz0uat](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kz0uat](https://forum.katalon.com/u/kz0uat)\
**Post date:** [August 1, 2019, 3:15am UTC](https://forum.katalon.com/t/how-can-i-get-the-object-with-my-custom-tag-and-custom-attribute-by-object-spy-directly/30617/1 "2019-08-01T03:15:56Z")

</div>

Dear teams,

How can I get the object with my custom tag and custom attribute by object spy directly?

I tried to adjust the web locators setting.

**Project \> Setting \> Test Design \> Web Locators**

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

I chose Attributes and I deleted everything inside it, only add my custom tag and custom attribute.

But when I use object spy/web recorder, the object attributes were created not by following my rule.

Thanks.

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 6:59am UTC](https://forum.katalon.com/t/how-can-i-get-the-object-with-my-custom-tag-and-custom-attribute-by-object-spy-directly/30617/2 "2022-08-08T06:59:57Z")

</div>

Archived on August 8, 2022, 6:59am UTC


