Ensuring a Chrome dialog is visible not working
Posted: Thu Oct 17, 2013 8:38 pm
Hi,
I've using Ranorex 4.0.6 and Chrome 30.
When a message box appears in Chrome, Ranorex Spy shows this as a Form. I can easily write code to work with the message box. However, I cannot figure out how to make the form visible if another window is over it, for example while stepping over code in Visual Studio.
So, say I have a Ranorex Form object, 'MyForm' for this Chrome message box. If I'm debugging and in Visual Studio and I step over the line (or a function) which has MyForm.EnsureVisible it doesn't work.
In Spy, if I right click on the Form and choose Ensure Visible or Activate it doesn't bring it to the front. This does work for the main Chrome Form though. Oddly enough, Focus does work. But MyForm.Focus doesn't work in code.
This same code works fine with IE.
Any thoughts?
Aracknid.
I've using Ranorex 4.0.6 and Chrome 30.
When a message box appears in Chrome, Ranorex Spy shows this as a Form. I can easily write code to work with the message box. However, I cannot figure out how to make the form visible if another window is over it, for example while stepping over code in Visual Studio.
So, say I have a Ranorex Form object, 'MyForm' for this Chrome message box. If I'm debugging and in Visual Studio and I step over the line (or a function) which has MyForm.EnsureVisible it doesn't work.
In Spy, if I right click on the Form and choose Ensure Visible or Activate it doesn't bring it to the front. This does work for the main Chrome Form though. Oddly enough, Focus does work. But MyForm.Focus doesn't work in code.
This same code works fine with IE.
Any thoughts?
Aracknid.