Switch window

Ask general questions here.
mohan.pentyala
Posts: 28
Joined: Thu Sep 20, 2018 7:43 am

Switch window

Post by mohan.pentyala » Wed Jan 30, 2019 12:27 pm

Hi

I am stuck up at below scenario, can you please help me,

When I click on the print preview on my application one more window will be opened but it will not be in focus, It will display as another window under my application, Now I have to navigate to that window and validate the window.

I have tried to switch by taking process name but that window didn't have any process name just it is adding as a subwindow of my application,

Is there any way I can achieve this?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4800
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Switch window

Post by odklizec » Wed Jan 30, 2019 12:31 pm

Hi,

Without seeing, at very least, Ranorex snapshot (NOT screenshot) of the problematic app/window, there is not much anyone here can do or suggest. Generally speaking, you should store xpath of the problematic window in repository and then use Focus or EnsureVisible action to bring the window to focus/make it visible? But again, without seeing the snapshot (or sample app), there is not much else anyone here can do or suggest.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration