@saumil.sah,
I am one Katalon users, I think that we are able to capture the value of the ID. Because I cannot access to your page so that I just provide idea I simulate from my side, base on that you can apply in your situation
See screenshot below:
Imaging that the text ‘Login’ is the static label ‘Id’
Imaging that the text ‘Please login to make appointment.’ is your dynamic id
The point here is to capture object dynamic id
Because the Id is dynamic, we cannot known the rule to generate that number so that we cannot capture its directly. However, the text ‘Id’ is static, and it is rarely to change to another one. So, we can capture the text Id first. Then, identify the relationship between the static text ‘label’ and dynamic id (based on xpath)
Once again, we capture object dynamic id based on the unchanged object (this case we use label Id)
- With screenshot above, first, we identify the label, we have xpath: //h2[normalize-space(.)=‘Login’]
- We see that the Id displayed next to label, using following-sibling to find it
Here is the xpath we need to find://h2[normalize-space(.)=‘Login’]/following-sibling:: p
Based on that ide, for your case, find the unchanged object first then use it to find your id
Hope it is useful.
FYI