Accessing Object Repository at Runtime – Looking for Alternative Approaches

Hi everyone,

I’m currently facing the following issue: I want to iterate over the Object Repository at runtime in order to check the selectors for any changes. Unfortunately, this doesn’t seem to be possible directly, as there’s no runtime access to the Object Repository.

My current workaround is to manually manage a dictionary like <StringName, UiElement> and store the selectors using Target.Selector in a file for comparison.

Has anyone come up with a cleaner or more robust solution for this kind of use case? I’d really appreciate any insights or suggestions.

Best regards,

Nico

@Nicolas_Kremp

Can you share more details on your scenarios and what purpose of this scenario like more.

Hi @Nicolas_Kremp

As per my knowledge It does not support runtime access to Object Repository. Using a dictionary to store selectors is a good approach. Alternatively, export selectors to a file before runtime and compare them during execution. You can also use Config files to manage selectors dynamically.

If helpful, mark as solution tick.
Happy automation with UiPath

Hi @Nicolas_Kremp

If your requirement is to only check for changes in the selectors, i think your approach is good storing info and then comparing.

If your requirement is to load selectors dynamically, refer below post.

Hope this helps.

Regards
Sonali