Page 1 of 1

Failed EnsureVisible action when using Ranorex agent

Posted: Tue Feb 23, 2021 3:11 pm
by rastek
I run Ranorex agent on a Jenkins Slave machine and give Ensure Visible errır and proides this link
https://www.ranorex.com/help/latest/int ... eshooting/

However problems on this page deals with normal Ranorex Studio, not remote agent.

I do not understand how can I evaluate below solution for my agent usage ?
From the Jekins file, I directly call my Ranorex-generated build exe, I do not use Ranorex Studio executable, then how will this solution help me - Any idea ?

Failed EnsureVisible action
This warning occurs when Ranorex Studio tries to execute an action that has an EnsureVisible operator, i.e. requires that the targeted UI element is visible, but can’t bring the window that contains the UI element to the foreground. Usually, this is caused by insufficient privileges.

Solution: Restart Ranorex Studio as administrator or use the Ranorex.UiaLauncher to start your AUT.

If you start the AUT through Ranorex Studio, e.g. with a Run application action, activate Settings > Advanced > Use UiaLauncher to elevate privileges for processes started by tools.

If you start the AUT separately, you need to call Ranorex.UiaLauncher32.exe from the command line. It is located in the \Bin\ folder of your Ranorex Studio installation folder, C:\Program Files (x86)\Ranorex\Studio\Bin by default.

The syntax for running an application through the UiaLauncher is:

Ranorex.UiaLauncher32.exe <path to application>

Re: Failed EnsureVisible action when using Ranorex agent

Posted: Tue Apr 13, 2021 11:27 am
by odklizec
Hi,

Have you resolved this problem? Aside of this failed Ensure Visible issue, everything else works OK? Does it fail with just one particular repo element, or all of them? Have you tried to save the AUT snapshot (its topmost window) before the failing action?