Testing with Ranorex

I want to test my Electron based app, that has embedded CesiumJS, using a test automation tool called Ranorex. It is able to ‘spy’ or ‘see into’ apps and get widget IDs so it can drive like a user.
The problem is that the ids it sees seem change, so I create a test, and it fails when I run it because it can’t find the widget. Has anybody had a problem like this and found a solution?