Using dynamics parameters in katalon recorder

i want to use type command:
//*[@id=“message_14343578641096427718”]
but the number after the ‘message_’ is always changing. How the script can it work with any number?

Use it like:

//*[contains(@id,‘message_’)]

but be aware that if some other id contains “message_” as well it may couse a problem, than you should add [0] at the end so you would have

//*[contains(@id,‘message_’)][0]

In the bracket at the end you put 0 if you want to use first occurence element with id contains “message_”, [1] if want second element with “message_” in id and so on

1 Like