Would there be a way to get this page element or not?

Hi all,

I’m running into issues when I try to script an application in Katalon Recorder.
I’m trying to locate elements with changing values in it, like:

‘dossier-11647-basic-information-content’]/div[2]/form/fieldset[3]/div[4]/div/div/div/span/i

where 11647 (it’s an id) changes per session

and:

‘dossier-11651-basic-information-content’]/div[2]/form

where 11651 changes per session.

Is there a way to access these elements, with a wildcard or something similar?

Thank you very much for your attention and help,

Cheers,

Robert

Hi,

You can use XPath function like //*[contains(@id, ‘first’)] to select elements based on unchanged parts.