# Some Auto-Generated XPaths in Windows Recorder are Inaccurate

**URL:** <https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025>\
**Category:** Bug Report\
**Tags:** desktop, katalon-studio\
**Created:** [June 23, 2026, 1:01am UTC](https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025 "2026-06-23T01:01:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eleena.rath](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@eleena.rath](https://forum.katalon.com/u/eleena.rath)\
**Post date:** [June 23, 2026, 1:01am UTC](https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025/1 "2026-06-23T01:01:30Z")

</div>

Before hitting that **Ask the Community** button, make sure to:

- Search for similar topics to make sure it hasn’t been reported by another member;
- Assign suitable tags to your topics (e.g. katalon-studio, web-testing, chrome, etc.)
- Encourage other members to **[Vote](http://forum.katalon.com/t/site-feedback-roundup-july-15/66967)** on your topic so that we can prioritize your issue(s)!
- And most importantly, try to follow the template below. 😃

**Environment Details**

- OS: Microsoft Windows 11 Enterprise
- Katalon Studio Enterprise Version 10.4.3
- desktopDriverUrl = [http://127.0.0.1:4723](http://127.0.0.1:4723)
- desiredCapabilities = {“appium:automationName”:“FlaUI”}

\ ***Summary**  
I believe I have found a bug in the Native Windows Recorder. Katalon Studio cannot find some objects during test execution, despite obtaining these objects from the Windows Recorder. The same bug might exist in the regular Windows Action Recorder, but I cannot currently confirm this because the Windows Action Recorder is not displaying the application’s screen in the Screen View. The Windows spy tool is also not functioning on my computer. I am still troubleshooting the issues with Windows Action Recorder and Windows spy tool.

\ ***Steps to reproduce**  
Katalon cannot find some objects during test execution, despite obtaining these objects from the Windows Recorder.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/d/c/dc5b769039cbaac9ea3aec36ff21d66acdd57674.png)

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

I originally thought this was a result of the Custom nodes in the xpaths and created a script to navigate through the DOM tree. After navigating the tree a bit, I found that Katalon could find the Custom nodes just fine. The issue seems to come from the /Datagrid[1]/Dataitem[#]/Cell[#] portion of the xpath. After cross-referencing the xpath with Accessibility Insights for Windows, I found that the nodes do not line up with ControlTypes listed in Accessibility Insights. The nodes are listed as DataGrid, DataItem, and Custom respectively.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/5/6/56ed7d6bd8ed99b918b748af271e4c29967e40f2.png)

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

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/1/21da3492e4e0f87f9bc7ae3aaa96ddfba8b8de29.png)

When I modified the xpath to match the ControlTypes listed in Accessibility Insights, Katalon Studio was then able to find the object during test execution.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/3/8/3841a4c9f51575b55419c626d0f1ae25edf098d4.png)

I believe this is a bug in the recorder. I’ve been looking through the release notes, documentation, and forums and have not yet found any references to this sort of problem with the recorder (Windows recorders specifically). Is this a bug? Or is it a known issue or something that can be fixed by tweaking some settings in Katalon Studio?

\ ***Blocker?**  
This is not currently a blocker, but I do need to go back and manually fix some auto-generated xpaths.

* * *

\ ***Operating System**  
Windows 11

\ ***Katalon Studio version**  
Enterprise version 10.4.3

\ ***Other Details**

- desktopDriverUrl = [http://127.0.0.1:4723](http://127.0.0.1:4723)
- desiredCapabilities = {“appium:automationName”:“FlaUI”}

Additional screenshot of Windows Action Recorder with blank Screen View:

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/d/b/db27e0d3629c840d45f4e48f450c919bb0b0c173.png)

---

<div class="post-metadata">

**Author:** ![nghi.phan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghi.phan/32/30970_2.png) [@nghi.phan](https://forum.katalon.com/u/nghi.phan)\
**Post date:** [June 23, 2026, 1:02am UTC](https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025/2 "2026-06-23T01:02:33Z")

</div>

Our community will get back to you soon.

---

<div class="post-metadata">

**Author:** ![nghi.phan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghi.phan/32/30970_2.png) [@nghi.phan](https://forum.katalon.com/u/nghi.phan)\
**Post date:** [June 23, 2026, 1:34am UTC](https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025/3 "2026-06-23T01:34:58Z")

</div>

> [@eleena.rath](#):
>
> \ ***Steps to reproduce**  
> Katalon cannot find some objects during test execution, despite obtaining these objects from the Windows Recorder.
> 
> ![image](https://europe1.discourse-cdn.com/katalon/original/3X/d/c/dc5b769039cbaac9ea3aec36ff21d66acdd57674.png)
> 
> ![image](https://europe1.discourse-cdn.com/katalon/original/3X/a/f/af8c9f14be420daaccad321a444e06f10ac07173.png)
> 
> I originally thought this was a result of the Custom nodes in the xpaths and created a script to navigate through the DOM tree. After navigating the tree a bit, I found that Katalon could find the Custom nodes just fine. The issue seems to come from the /Datagrid[1]/Dataitem[#]/Cell[#] portion of the xpath. After cross-referencing the xpath with Accessibility Insights for Windows, I found that the nodes do not line up with ControlTypes listed in Accessibility Insights. The nodes are listed as DataGrid, DataItem, and Custom respectively.
> 
> ![image](https://europe1.discourse-cdn.com/katalon/original/3X/5/6/56ed7d6bd8ed99b918b748af271e4c29967e40f2.png)
> 
> ![image](https://europe1.discourse-cdn.com/katalon/original/3X/4/e/4e546c2609bd993b441d125bf61c406faec95cbd.png)
> 
> ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/1/21da3492e4e0f87f9bc7ae3aaa96ddfba8b8de29.png)
> 
> When I modified the xpath to match the ControlTypes listed in Accessibility Insights, Katalon Studio was then able to find the object during test execution.
> 
> ![image](https://europe1.discourse-cdn.com/katalon/original/3X/3/8/3841a4c9f51575b55419c626d0f1ae25edf098d4.png)
> 
> I believe this is a bug in the recorder. I’ve been looking through the release notes, documentation, and forums and have not yet found any references to this sort of problem with the recorder (Windows recorders specifically). Is this a bug? Or is it a known issue or something that can be fixed by tweaking some settings in Katalon Studio?
> 
> \ ***Blocker?**  
> This is not currently a blocker, but I do need to go back and manually fix some auto-generated xpaths.
> 
> * * *
> 
> \ ***Operating System**  
> Windows 11
> 
> \ ***Katalon Studio version**  
> Enterprise version 10.4.3
> 
> \ ***Other Details**
> 
> - desktopDriverUrl = [http://127.0.0.1:4723](http://127.0.0.1:4723)
> - desiredCapabilities = {“appium:automationName”:“FlaUI”}
> 
> Additional screenshot of Windows Action Recorder with blank Screen View:
> 
> ![image](https://europe1.discourse-cdn.com/katalon/original/3X/d/b/db27e0d3629c840d45f4e48f450c919bb0b0c173.png)

We investigated this and it appears to be a Native Windows Recorder bug in KS 10.4.3 rather than a configuration issue.

The recorder is generating some XPath tags that do not match the actual runtime control tags exposed during execution. In the reproduced case, the recorded XPath used values like `Datagrid` / `Dataitem`, while the runtime tree exposed `DataGrid` / `DataItem`. After correcting the XPath to match the runtime control tags, Katalon Studio was able to find the object successfully.

As a workaround, the affected recorded objects can be updated manually to use the corrected XPath or a more stable locator such as Accessibility ID, Name, or Class Name when available.

Please see if this helps

Bella

---

<div class="post-metadata">

**Author:** ![depapp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/depapp/32/29178_2.png) [@depapp](https://forum.katalon.com/u/depapp)\
**Post date:** [June 23, 2026, 1:56am UTC](https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025/4 "2026-06-23T01:56:17Z")

</div>

hi @eleena.rath

the workaround is to manually correct the auto-generated XPaths to match the actual control tags exposed in the runtime tree. You can use Accessibility Insights for Windows to verify the correct ControlType names. Alternatively, switch the locator strategy on the affected test objects to use Accessibility ID, Name, or Class Name instead of XPath, which tends to be more resilient against these tree structure inconsistencies

---

<div class="post-metadata">

**Author:** ![Monty\_Bagati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monty_bagati/32/33047_2.png) [@Monty\_Bagati](https://forum.katalon.com/u/Monty_Bagati)\
**Post date:** [June 23, 2026, 5:33am UTC](https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025/5 "2026-06-23T05:33:28Z")

</div>

Windows automation is not that matured in Katalon

---

<div class="post-metadata">

**Author:** ![mcartwright](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mcartwright](https://forum.katalon.com/u/mcartwright)\
**Post date:** [June 26, 2026, 8:54am UTC](https://forum.katalon.com/t/some-auto-generated-xpaths-in-windows-recorder-are-inaccurate/192025/6 "2026-06-26T08:54:59Z")

</div>

change priority of locators
