Xpath for dynamic generated

Hi All,

Below is the html code

for above html code how can write xpath and value showing is dynamic
i.e KT_1-003_1854_3 dynamic

Thanks in advance

Using Katalon:

  1. Record the object being tested.
  2. From the Manual view right-click the object & open it.
  3. Select the Attributes tab.
  4. Change the condition to “Starts with” or “Contains”.
  5. Change the value to “Menu_on”.
  6. Tick the “Detect object by?” checkbox.
    Run the test case
    See the Selector Editor for the xpath syntax
    Mine= //[contains(@href, ‘./profile.php#login’)] or
    [starts-with(@href, ‘./profile.php#login’)]