I don't know much about UIPath, but you can try searching the elements by classname, instead of by id.
E.g.: if you have a button called actionButton1, the same button could be found by using the classname mx-name-actionButton1
See the documentation: https://docs.mendix.com/howto/front-end/selenium-support/#naming-conventions
I use this approach with Cypress and it works very well.
https://vstram.medium.com/mendix-test-automation-with-cypress-03a46fdb82ff