How to handle dynamic xpath?

Your provided solution worked for me. Thank you so much.