# Similar objects are confused by WebRecorder, even with different html IDs

**URL:** <https://forum.katalon.com/t/similar-objects-are-confused-by-webrecorder-even-with-different-html-ids/44376>\
**Category:** Bug Report\
**Tags:** katalon-recorder\
**Created:** [June 10, 2020, 8:47am UTC](https://forum.katalon.com/t/similar-objects-are-confused-by-webrecorder-even-with-different-html-ids/44376 "2020-06-10T08:47:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 10, 2020, 8:47am UTC](https://forum.katalon.com/t/similar-objects-are-confused-by-webrecorder-even-with-different-html-ids/44376/1 "2020-06-10T08:47:53Z")

</div>

Hello,  
I encounter some limitations of WebRecorder as for some icons, it absolutely want to merge them, even if they have different html ID.  
And as in WebRecorder, we cannot create new object, I have to go back in katalon, copy/paste Object, and manually edit xpath in order to get several objects to interact with 😬

I suppose Katalon recorder is merging these different objects because they have same icon (the green checkbox).  
You can see on these snapshots that Webrecorder does well recognise different xpath (HFGRA4 instead of HFGRA2) :

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/a/ae7328c10bf2f3e92fa5c11cf76646625603f88c.jpeg)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/2/24cf8abae83866d1a2ca27ccee8d40534abb71f2.jpeg)

Bellow you can find html code of the 3 different objects which are confused by Webrecorder, even if they have different id :

```
<div id="a_HFGRA0-ID_FEN0-IMG_ENTREE-1_id" class="a-bitmap a-widget" style="position: absolute; top: 360px; left: 520px; width: 120px; height: 120px; z-index: 2147483457; visibility: inherit;" a-wuid-val="HFGRA0-ID_FEN0-IMG_ENTREE-1" _dijitmenua_hfgra0-id_fen0-ctxmnuimg_entree-1_id="1"><img style="width: 100%; height: 100%;" src="/reflex/WagonServlet?action=GET_UNLIMITED_CACHE&amp;hash=A38E11BD9726BD4DA80AC3E78968C4A3&amp;WagonNodeId=sgecrfxap02.fmlogistic.fr_18100"></div>

<div id="a_HFGRA2-ID_FEN0-IMG_ENTREE-1_id" class="a-bitmap a-widget" style="position: absolute; top: 360px; left: 520px; width: 120px; height: 120px; z-index: 2147483467; visibility: inherit; background-position: -520px -360px;" a-wuid-val="HFGRA2-ID_FEN0-IMG_ENTREE-1" _dijitmenua_hfgra2-id_fen0-ctxmnuimg_entree-1_id="1"><img style="width: 100%; height: 100%;" src="/reflex/WagonServlet?action=GET_UNLIMITED_CACHE&amp;hash=A38E11BD9726BD4DA80AC3E78968C4A3&amp;WagonNodeId=sgecrfxap02.fmlogistic.fr_18100"></div>

<div id="a_HFGRA4-ID_FEN0-IMG_ENTREE-1_id" class="a-bitmap a-widget" style="position: absolute; top: 360px; left: 520px; width: 120px; height: 120px; z-index: 2147483427; visibility: inherit; background-position: -520px -360px;" a-wuid-val="HFGRA4-ID_FEN0-IMG_ENTREE-1" _dijitmenua_hfgra4-id_fen0-ctxmnuimg_entree-1_id="1"><img style="width: 100%; height: 100%;" src="/reflex/WagonServlet?action=GET_UNLIMITED_CACHE&amp;hash=A38E11BD9726BD4DA80AC3E78968C4A3&amp;WagonNodeId=sgecrfxap02.fmlogistic.fr_18100"></div>

```

When recording action with web recorder, it record 3 clicks on the same object which has these properties (xpath of first clicked object) :

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

---

<div class="post-metadata">

**Author:** ![danzaaa981](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@danzaaa981](https://forum.katalon.com/u/danzaaa981)\
**Post date:** [June 10, 2020, 1:09pm UTC](https://forum.katalon.com/t/similar-objects-are-confused-by-webrecorder-even-with-different-html-ids/44376/2 "2020-06-10T13:09:07Z")

</div>

You can edit objects while recording:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/4/492d02ad1e6131c2bbe0bbfd52c62b5fb778f5ee.png)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/5/57950a19a44e7bd4486da104c09fa8466462cae3.png)

I think this is the feature you are missing…

Regards

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 10, 2020, 2:21pm UTC](https://forum.katalon.com/t/similar-objects-are-confused-by-webrecorder-even-with-different-html-ids/44376/3 "2020-06-10T14:21:29Z")

</div>

Hello danzaaa981,  
yes, I know that I can modify xpath of recorded objects

But it does not solve my problem because when recording actions, recorder uses the same Object for 2 different html elements.  
Example here with step10 and step 12 which does not interact with same html element, but which has been merged in same Object by webrecorder :

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/3/33feb710f0c9c44c3a1d93ec36f8d9c009412d65.png)  
When I have 2 steps whose interact with these both html elements, only one of these steps can pass.  
Indeed, if step10 has good xpath for the first html element, then my use case will fail in step12.  
If I try to modify xpath to be able to patch step12, I will in fact edit same object than step10, and step10 will fail at next execution…

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 11, 2020, 9:28am UTC](https://forum.katalon.com/t/similar-objects-are-confused-by-webrecorder-even-with-different-html-ids/44376/4 "2020-06-11T09:28:58Z")

</div>

hello,  
no more ideas to help me using webrecorder in order to capture similar but different objects ?  
I found another post talking about same problem than me, but it is quite older :

> [@Can't capture similar items](http://forum.katalon.com/t/cant-capture-similar-items/9120):
>
> Hi, While we where using Katalon 5.0.1 we were able to capture “similar” items as different objects but with new versions (5.2.0 and 5.3.0) the recorder overwrites the information of the item instead of creating a new object. For example this buttons overwrite instead of being captured as different objects.[Image: https://s3.amazonaws.com/katalon-forum/editor/pr/sllocrzhcegp.jpg] All the images have the same properties, except for the location (Xpath and location on screen): [image] Could yo…

---

<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:** [June 11, 2020, 11:49am UTC](https://forum.katalon.com/t/similar-objects-are-confused-by-webrecorder-even-with-different-html-ids/44376/5 "2020-06-11T11:49:22Z")

</div>

I can’t advise you about the recorder, I never use it.  
I can advise you about Test Objects. You can edit them and fix the problems.
