Failed EnsureVisible action when using Ranorex agent

Ask general questions here.
Posts: 182
Joined: Wed Aug 06, 2014 12:00 pm

Failed EnsureVisible action when using Ranorex agent

Post by rastek » Tue Feb 23, 2021 3:11 pm

I run Ranorex agent on a Jenkins Slave machine and give Ensure Visible errır and proides this link ... 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>