Failed EnsureVisible action when using Ranorex agent

Ask general questions here.
rastek
Posts: 183
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
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>

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

Re: Failed EnsureVisible action when using Ranorex agent

Post by odklizec » Tue Apr 13, 2021 11:27 am

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?
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