How to Select between to instances of Same Window

Class library usage, coding and language questions.
hndavis
Posts: 1
Joined: Wed Dec 09, 2020 12:44 am

How to Select between to instances of Same Window

Post by hndavis » Wed Dec 09, 2020 1:26 am

I am working in c#, wpf. I have multiple instance of the same class ( class='MyView') ). How can i differentiate the objects? They have objects contained within themselves and the objects have different contents.; i e a label with different texts. How can i use this to differentiate the instantiated objects ?
Howard

hsarmah2021
Posts: 34
Joined: Tue Oct 27, 2020 1:43 pm

Re: How to Select between to instances of Same Window

Post by hsarmah2021 » Mon Jan 25, 2021 9:49 am

You can use the process id of individual windows as part of the xpath. I did the same to identify different instances of same WPF application and it works.