This might be more of a C# question but I'm not sure.
I have two windows that I'm switching between testing, assume both are open at the time.
And one of them is in front of the other one, and I just finished testing with it, and I want to bring the other window in front now, and switch them. And so I'm trying to "focus" or ensure that the other window is now on the front. Is there any good code anybody knows to do this?
Maybe there's a way to do this in the Ranorex namespace or just general C# is fine too, any help would be appreciated. I just need to use code to move one window in front of another one. Thank you.
Window C# Order Ranorex
Re: Window C# Order Ranorex
Actually I found out a pretty easy way to do it.
repo.Name.Click();
It works for my purposes. Any other methods of doing this are appreciated now but just letting you all know I resolved the issue using this.
repo.Name.Click();
It works for my purposes. Any other methods of doing this are appreciated now but just letting you all know I resolved the issue using this.
-
- Certified Professional
- Posts: 455
- Joined: Tue Feb 18, 2014 2:14 pm
- Location: Co Louth, Ireland
- Contact:
Re: Window C# Order Ranorex
You could try adding an invoke action - ensure visible. This can be added as an action step in a recorded module.