GuOrg / Gu.Wpf.UiAutomation

MIT License
96 stars 17 forks source link

Does it work with contents dynamically loaded? #171

Open dev-win911 opened 1 year ago

dev-win911 commented 1 year ago

We have an application where content is dynamically loaded in the Content controller and things are put together using MEF. So it seems like I can never get hold of elements that are loaded dynamically. So, my question is does this tool work in those scenarios? I think it can work if I can reload or refresh certain parts of control. Is there an option to do it?

JohanLarsson commented 1 year ago

No idea but it might, you'd have to try it.

dev-win911 commented 1 year ago

Yeah i have tried it and seems like it does not work. MainWindow object doesn't seems to have any information about this dynamically loaded objects. So I was wondering if there is a method to reload the certain control? In this senario if i can refresh/reload the children of main window it might work.