# Unable to click on object

**URL:** <https://forum.katalon.com/t/unable-to-click-on-object/21205>\
**Category:** Miscellaneous\
**Tags:** web-testing, katalon-studio\
**Created:** [March 14, 2019, 2:49pm UTC](https://forum.katalon.com/t/unable-to-click-on-object/21205 "2019-03-14T14:49:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Do\_Dieu\_Thuy](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@Do\_Dieu\_Thuy](https://forum.katalon.com/u/Do_Dieu_Thuy)\
**Post date:** [March 14, 2019, 2:49pm UTC](https://forum.katalon.com/t/unable-to-click-on-object/21205/1 "2019-03-14T14:49:28Z")

</div>

Dear all,  
I need support this issue. I can not click on Object .Error messages are displayed on the attached image. Please help me.  
Many thanks.

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/a/a6bb036865ce5c4e2154f2c698b70b0384e22244.png)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/6/635faafa5d0d58b05be5f08e84a9385140677a11.png)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/4/4004f7f6fbb920a8f7b1ee51d91a622e9f2d3c20.png)

---

<div class="post-metadata">

**Author:** ![hpulsford](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hpulsford/32/2985_2.png) [@hpulsford](https://forum.katalon.com/u/hpulsford)\
**Post date:** [March 14, 2019, 3:09pm UTC](https://forum.katalon.com/t/unable-to-click-on-object/21205/2 "2019-03-14T15:09:43Z")

</div>

Can you please send a snippet of the actual test page that is recieving the error and the html of the element you want to click.

---

<div class="post-metadata">

**Author:** ![Do\_Dieu\_Thuy](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@Do\_Dieu\_Thuy](https://forum.katalon.com/u/Do_Dieu_Thuy)\
**Post date:** [March 14, 2019, 3:33pm UTC](https://forum.katalon.com/t/unable-to-click-on-object/21205/3 "2019-03-14T15:33:06Z")

</div>

I don’t have source code of this web .I only check xpath by F12 .Is this attachment helpful ?

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/c/c21bd218a67be5b4187b595b07bca57185216c73.jpeg)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/7/7ca84e85034200b64f19b4e32778c85eef080827.png)

---

<div class="post-metadata">

**Author:** ![shrikalase](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@shrikalase](https://forum.katalon.com/u/shrikalase)\
**Post date:** [March 15, 2019, 11:42am UTC](https://forum.katalon.com/t/unable-to-click-on-object/21205/4 "2019-03-15T11:42:32Z")

</div>

@hpulsford@Do_Dieu_Thuy – Could you try with set delay in each action and then try to execute -

 ![set%20delay](https://europe1.discourse-cdn.com/katalon/original/2X/a/aa57b5e7e27ed106954eba788061e307d262e230.jpeg)

---

<div class="post-metadata">

**Author:** ![hpulsford](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hpulsford/32/2985_2.png) [@hpulsford](https://forum.katalon.com/u/hpulsford)\
**Post date:** [March 15, 2019, 12:21pm UTC](https://forum.katalon.com/t/unable-to-click-on-object/21205/5 "2019-03-15T12:21:14Z")

</div>

Change the “Detect object by” from xpath to text,class and tag. Sometimes it cant locate it as the xpath has changed and therefore is trying to click somewhere else on the page. If this doesnt work try re-capturing it.

Just checking - this is the element you are trying to click on, correct?

 ![Inkedc21bd218a67be5b4187b595b07bca57185216c73_1_690x387_LI](https://europe1.discourse-cdn.com/katalon/original/2X/a/a76f2a0dd06cf025a540fa9e7bd704f1969c0aae.jpeg)

---

<div class="post-metadata">

**Author:** ![Timo\_Kuisma](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Timo\_Kuisma](https://forum.katalon.com/u/Timo_Kuisma)\
**Post date:** [March 16, 2019, 9:38am UTC](https://forum.katalon.com/t/unable-to-click-on-object/21205/6 "2019-03-16T09:38:45Z")

</div>

Hi,

```
 maybe you will need to use dynamic xpath value as like

 int x = some_integer_value;
 String txtval = x	
 'Change xpath property to new value'
 //text = property type, possible to use xpath also
//txtval = value which will change, need to be string type
//xpathVal = "//div[@id='example_paginate']/span/a["+value_to_change+"]"
newProperty = WebUI.modifyObjectProperty(findTestObject('Object Repository/DatePicker/Page_/day'), 'text','equals',txtval, true)
//if used xpath
//newProperty = WebUI.modifyObjectProperty(findTestObject('Object Repository/DatePicker/Page_/day'), 'xpath','equals',xpathVal, true)
WebUI.click(newProperty, FailureHandling.OPTIONAL)
```
