Sometimes, when the test starts running, the black command screen remains on top and hides the browser. In that case, if the test has to click on a link behind this screen, the test fails.
It is what I suppose it happens.
What do I have to do? Add a 'focus' action on the whole browser?
Command screen hiding the browser
Re: Command screen hiding the browser
Hi Florian,
Yes, setting the focus to AUT should help. At least it helped in my projects. I'm doing it via "User Code" action added right after the AUT initialization line. This code brings the application to foreground. Just replace the application name with your AUT name.
Hope this helps?
Yes, setting the focus to AUT should help. At least it helped in my projects. I'm doing it via "User Code" action added right after the AUT initialization line. This code brings the application to foreground. Just replace the application name with your AUT name.
Code: Select all
public void Set_Focus()
{
repo.applicationname.Self.Activate();
}
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Command screen hiding the browser
Thanks for your answer.
I would use this command:
This method should be great I guess.
I would use this command:
Code: Select all
repo.MyApplicationName.Self.EnsureVisible
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Command screen hiding the browser
Hi,
Yes, EnsureVisible should make the application visible again.
Activate makes the following: "Activating a form brings it to the front if this is the active application, or it flashes the window caption if this is not the active application. The form must be visible for this method to have any effect."
Regards,
Markus
Ranorex Support Team
Yes, EnsureVisible should make the application visible again.
Activate makes the following: "Activating a form brings it to the front if this is the active application, or it flashes the window caption if this is not the active application. The form must be visible for this method to have any effect."
Regards,
Markus
Ranorex Support Team