# Unable find object

**URL:** <https://forum.katalon.com/t/unable-find-object/24182>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [April 30, 2019, 3:39pm UTC](https://forum.katalon.com/t/unable-find-object/24182 "2019-04-30T15:39:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nghao1199](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghao1199/32/23870_2.png) [@Nghao1199](https://forum.katalon.com/u/Nghao1199)\
**Post date:** [April 30, 2019, 3:39pm UTC](https://forum.katalon.com/t/unable-find-object/24182/1 "2019-04-30T15:39:59Z")

</div>

i only record then playback, but there is an error, i used Chorpath to get xpath but it is errored.

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

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [April 30, 2019, 3:46pm UTC](https://forum.katalon.com/t/unable-find-object/24182/2 "2019-04-30T15:46:02Z")

</div>

hello,  
i suspect that id is generated every time page is displayed. can you confirm this?

---

<div class="post-metadata">

**Author:** ![francorebu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/francorebu/32/16103_2.png) [@francorebu](https://forum.katalon.com/u/francorebu)\
**Post date:** [April 30, 2019, 7:17pm UTC](https://forum.katalon.com/t/unable-find-object/24182/3 "2019-04-30T19:17:15Z")

</div>

if you are testing the web page : [https://www.traveloka.com/vi-vn](https://www.traveloka.com/vi-vn)

and then you click on: ve May Bay

and then you click on : origin (or from)  
that object has a dynamic id , so for each time you run that test case …the object could not be found because is not the same every time… so you have to find the way to generate and change the xpath for that object. You could test that by pressing f5 key and inspect that element again. if the id is different…that is because the id is dynamic.

try this one:  
//\*[@placeholder=‘Origin’] or another way to identify that object.

to learn more about xpaths i recomend the following link :  
[https://www.guru99.com/xpath-selenium.html](https://www.guru99.com/xpath-selenium.html)

---

<div class="post-metadata">

**Author:** ![Nghao1199](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghao1199/32/23870_2.png) [@Nghao1199](https://forum.katalon.com/u/Nghao1199)\
**Post date:** [May 1, 2019, 1:04am UTC](https://forum.katalon.com/t/unable-find-object/24182/4 "2019-05-01T01:04:57Z")

</div>

thank you, it is dynamic id, but i don’t know how to find object.

---

<div class="post-metadata">

**Author:** ![Nghao1199](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghao1199/32/23870_2.png) [@Nghao1199](https://forum.katalon.com/u/Nghao1199)\
**Post date:** [May 1, 2019, 1:04am UTC](https://forum.katalon.com/t/unable-find-object/24182/5 "2019-05-01T01:04:58Z")

</div>

thank you,it is dynamic id, then i try //\*[@placeholder=‘Origin’] , but it don’t find object.

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [May 1, 2019, 6:06am UTC](https://forum.katalon.com/t/unable-find-object/24182/6 "2019-05-01T06:06:36Z")

</div>

would be quite helpful if you would share html of page you are trying to test … at least part that contains element of interest…

---

<div class="post-metadata">

**Author:** ![Nghao1199](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghao1199/32/23870_2.png) [@Nghao1199](https://forum.katalon.com/u/Nghao1199)\
**Post date:** [May 1, 2019, 6:28am UTC](https://forum.katalon.com/t/unable-find-object/24182/7 "2019-05-01T06:28:53Z")

</div>

![image](https://europe1.discourse-cdn.com/katalon/original/2X/5/5abd60d24f5c83c00028cda391fda2f447bf3d20.png)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/4/4a992b3a74ba4a07a94e1c21ed624184c0b173c1.png)

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [May 1, 2019, 12:20pm UTC](https://forum.katalon.com/t/unable-find-object/24182/8 "2019-05-01T12:20:34Z")

</div>

> [@Nghao1199](#):
>
> //input[@placeholder=‘Origin’]

should work, if not, you will need to address nearest object with text and forge xpath from there

---

<div class="post-metadata">

**Author:** ![Nghao1199](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghao1199/32/23870_2.png) [@Nghao1199](https://forum.katalon.com/u/Nghao1199)\
**Post date:** [May 1, 2019, 1:36pm UTC](https://forum.katalon.com/t/unable-find-object/24182/9 "2019-05-01T13:36:30Z")

</div>

it don’t work

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

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [May 1, 2019, 2:18pm UTC](https://forum.katalon.com/t/unable-find-object/24182/10 "2019-05-01T14:18:47Z")

</div>

if you did ctr+c and ctrl+v (i suspect) there are strange quotas in xpath, please use standard ones either ’ or " (and put them manually not by ctrl+c and ctrl+v)

---

<div class="post-metadata">

**Author:** ![francorebu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/francorebu/32/16103_2.png) [@francorebu](https://forum.katalon.com/u/francorebu)\
**Post date:** [May 3, 2019, 5:36pm UTC](https://forum.katalon.com/t/unable-find-object/24182/11 "2019-05-03T17:36:04Z")

</div>

I think that is the problem . try to put the word : Origin between traditional singles quotes. It seems that your singles quotes are different and not the traditional ones. Try once more please!. … check when you putthe alphanumeric code of id xpath , the singles quotes are in correct format in that xpath
