<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Id are changing while creating xpaths in Automation testing</title><link>https://community.appian.com/discussions/f/general/40404/id-are-changing-while-creating-xpaths-in-automation-testing</link><description>My Team&amp;#39;s Automation engineers are trying to automate the testing for the applications. They are using id for input fields to create x paths. The problem when the tab is refreshed, the ID&amp;#39;s for the same field is being changed in the html. Can we keep</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Id are changing while creating xpaths in Automation testing</title><link>https://community.appian.com/thread/154533?ContentTypeID=1</link><pubDate>Wed, 06 May 2026 07:05:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c4610a2-346c-49d2-80ee-32457b60db2e</guid><dc:creator>VarunTejaGurrapu</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/vijayp6380"&gt;vijayp6380&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;We&amp;nbsp;can&amp;rsquo;t rely on Appian generated HTML IDs, they are dynamic&amp;nbsp;in nature as they are generated at runtime, even we have also faced this.&lt;/p&gt;
&lt;p&gt;Instead, we had done few workarounds,&lt;/p&gt;
&lt;p&gt;1. Use Attributes such as -&amp;nbsp;Labels,&amp;nbsp;Placeholder text, Tooltips.&lt;/p&gt;
&lt;p&gt;2. Using Relative Xpaths instead of Absolute Xpaths.&lt;/p&gt;
&lt;p&gt;3. Use Nearby anchors.&lt;/p&gt;
&lt;p&gt;4. If you are using automation tools like selenium, use predefined functions like getByLabel().&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note: Try to use unique label names, Placeholder Text, Proper tooltips to help the debugger understand the DOM elements.&lt;br /&gt;&lt;br /&gt;Hope this will solve your issue! Happy to help further!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Id are changing while creating xpaths in Automation testing</title><link>https://community.appian.com/thread/154532?ContentTypeID=1</link><pubDate>Wed, 06 May 2026 07:03:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42eef6aa-875c-493b-921d-4704bc29a279</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Don&amp;rsquo;t use the changing HTML id for XPath because it is dynamic and can change on refresh. &lt;br /&gt;Use a stable locator instead, such as label text, name, aria-label, or a partial XPath with contains() / starts-with() if a fixed prefix exists.&lt;br /&gt;&lt;br /&gt;Similar Post -&amp;nbsp;&lt;a href="/discussions/f/rpa/31005/how-to-use-xpath-as-a-browser-action-selector-which-is-changing-dynamically"&gt;https://community.appian.com/discussions/f/rpa/31005/how-to-use-xpath-as-a-browser-action-selector-which-is-changing-dynamically&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>