# modifyObjectProperty doesn't take modified value

**URL:** <https://forum.katalon.com/t/modifyobjectproperty-doesnt-take-modified-value/38858>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [January 21, 2020, 6:30am UTC](https://forum.katalon.com/t/modifyobjectproperty-doesnt-take-modified-value/38858 "2020-01-21T06:30:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 21, 2020, 7:10am UTC](https://forum.katalon.com/t/modifyobjectproperty-doesnt-take-modified-value/38858/2 "2020-01-21T07:10:03Z")

</div>

Have a look at this post first:

> [@modifyObjectProperty](http://forum.katalon.com/t/modifyobjectproperty/6309/9):
>
> Hi, The docs at [https://docs.katalon.com/display/KD/[WebUI]+Modify+Object+Property](https://docs.katalon.com/display/KD/%5BWebUI%5D+Modify+Object+Property) still say eg: new\_btn = WebUI.modifyObjectProperty(findTestObject('Page\_Login/btn\_Login'), 'xpath', 'equals', '//\*[@type=\"button\"]', false) however it seems this first finds the object without modifying the xpath, and the comment above says "calling the modified object should not contain findTestObject " - so what would be the correct code? -------------------- on further testing, I got a working code like…

---

_[View the full topic](https://forum.katalon.com/t/modifyobjectproperty-doesnt-take-modified-value/38858)._
