"The automating process does not have the required security"
Posted: Fri Aug 18, 2017 12:36 am
I have an app that tries to automate another app through Ranorex and the WPF adapter. Spy works fine on this machine.
The OS is Windows 8.1 and both the automating and automated app are .NET 4.5.
But when I try it through my app I get output like this. UIA works fine with the same code. Any ideas? I assume something is not set up right on the machine.
2017_08_17.16_25_47 [000018]00051.792:FindTarget ranorex_path: /*[processid='5360']//*[@AutomationID='CONNECT_XWand_Tab_ModelLabel']/
2017_08_17.16_25_47 [000018]00051.866:CONSOLE: [2017/08/17 16:25:47.078][Warn ][WPF]: Failed to instrument WPF process. UI element identification capabilities for this window are limited.
2017_08_17.16_25_47 [000018]00051.866:17 Aug 2017 16:25:47.0780: CONSOLE: [2017/08/17 16:25:47.078][Warn ][WPF]: Failed to instrument WPF process. UI element identification capabilities for this window are limited.
2017_08_17.16_25_47 [000018]00051.866:CONSOLE:
2017_08_17.16_25_47 [000018]00051.866:17 Aug 2017 16:25:47.0780: CONSOLE:
2017_08_17.16_25_47 [000018]00051.866:CONSOLE: Could not set-up managed injection endpoint: Failed to retrieve handle to bootstrapper library.
2017_08_17.16_25_47 [000018]00051.866:17 Aug 2017 16:25:47.0780: CONSOLE: Could not set-up managed injection endpoint: Failed to retrieve handle to bootstrapper library.
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: Process: 'VerciseNavigator' (pid 5360)
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: Process: 'VerciseNavigator' (pid 5360)
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... eason#2:.1
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... eason#2:.1
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00051.896:CONSOLE: [2017/08/17 16:25:47.109][Warn ][Win32]: The automating process does not have the required security permissions to access the process 'AutomationServer'. UI element identification capabilities for controls in that process are limited.
2017_08_17.16_25_47 [000018]00051.896:17 Aug 2017 16:25:47.1092: CONSOLE: [2017/08/17 16:25:47.109][Warn ][Win32]: The automating process does not have the required security permissions to access the process 'AutomationServer'. UI element identification capabilities for controls in that process are limited.
2017_08_17.16_25_47 [000018]00051.896:CONSOLE: Process: 'AutomationServer' (pid 5232)
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: Process: 'AutomationServer' (pid 5232)
2017_08_17.16_25_47 [000018]00051.897:CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.897:CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... plications
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... plications
2017_08_17.16_25_47 [000018]00051.897:CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00052.066:FindTarget Exception: Ranorex.CapabilityNotSupportedException: The element does not support the required capability 'wpfelement'.
2017_08_17.16_25_47 at Ranorex.Adapter..ctor(Element element)
2017_08_17.16_25_47 at Ranorex.WpfElement.FromPath(String path)
2017_08_17.16_25_47 at TAUtilities.UITesting.RanorexTesting.RanorexUIAdapter.FindTarget(UIAutomationMode AutomationMode, String RootPath, String AutoID, Boolean MustBeVisible) in C:\TestAutomation\Dev\Main\Apps\Source\TestAutomationUtilities\TAUtilities\UITesting\RanorexTesting\RanorexUIAdapter.cs:line 138
2017_08_17.16_25_47 [000018]00052.069:SetAutomationMode start: Mode: WPF
2017_08_17.16_25_47 [000018]00052.069:SetAutomationMode end WPF
2017_08_17.16_28_38 [000024]00223.061:RanorexUIAdapter.FromProcess start TimeoutMS 1800
The OS is Windows 8.1 and both the automating and automated app are .NET 4.5.
But when I try it through my app I get output like this. UIA works fine with the same code. Any ideas? I assume something is not set up right on the machine.
2017_08_17.16_25_47 [000018]00051.792:FindTarget ranorex_path: /*[processid='5360']//*[@AutomationID='CONNECT_XWand_Tab_ModelLabel']/
2017_08_17.16_25_47 [000018]00051.866:CONSOLE: [2017/08/17 16:25:47.078][Warn ][WPF]: Failed to instrument WPF process. UI element identification capabilities for this window are limited.
2017_08_17.16_25_47 [000018]00051.866:17 Aug 2017 16:25:47.0780: CONSOLE: [2017/08/17 16:25:47.078][Warn ][WPF]: Failed to instrument WPF process. UI element identification capabilities for this window are limited.
2017_08_17.16_25_47 [000018]00051.866:CONSOLE:
2017_08_17.16_25_47 [000018]00051.866:17 Aug 2017 16:25:47.0780: CONSOLE:
2017_08_17.16_25_47 [000018]00051.866:CONSOLE: Could not set-up managed injection endpoint: Failed to retrieve handle to bootstrapper library.
2017_08_17.16_25_47 [000018]00051.866:17 Aug 2017 16:25:47.0780: CONSOLE: Could not set-up managed injection endpoint: Failed to retrieve handle to bootstrapper library.
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: Process: 'VerciseNavigator' (pid 5360)
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: Process: 'VerciseNavigator' (pid 5360)
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... eason#2:.1
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... eason#2:.1
2017_08_17.16_25_47 [000018]00051.867:CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00051.867:17 Aug 2017 16:25:47.0780: CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00051.896:CONSOLE: [2017/08/17 16:25:47.109][Warn ][Win32]: The automating process does not have the required security permissions to access the process 'AutomationServer'. UI element identification capabilities for controls in that process are limited.
2017_08_17.16_25_47 [000018]00051.896:17 Aug 2017 16:25:47.1092: CONSOLE: [2017/08/17 16:25:47.109][Warn ][Win32]: The automating process does not have the required security permissions to access the process 'AutomationServer'. UI element identification capabilities for controls in that process are limited.
2017_08_17.16_25_47 [000018]00051.896:CONSOLE: Process: 'AutomationServer' (pid 5232)
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: Process: 'AutomationServer' (pid 5232)
2017_08_17.16_25_47 [000018]00051.897:CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: The following website provides more information on this technology limitation:
2017_08_17.16_25_47 [000018]00051.897:CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... plications
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: https://www.ranorex.com/help/v7.1.0/tec ... plications
2017_08_17.16_25_47 [000018]00051.897:CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00051.897:17 Aug 2017 16:25:47.1092: CONSOLE: (This message is only shown once per report.)
2017_08_17.16_25_47 [000018]00052.066:FindTarget Exception: Ranorex.CapabilityNotSupportedException: The element does not support the required capability 'wpfelement'.
2017_08_17.16_25_47 at Ranorex.Adapter..ctor(Element element)
2017_08_17.16_25_47 at Ranorex.WpfElement.FromPath(String path)
2017_08_17.16_25_47 at TAUtilities.UITesting.RanorexTesting.RanorexUIAdapter.FindTarget(UIAutomationMode AutomationMode, String RootPath, String AutoID, Boolean MustBeVisible) in C:\TestAutomation\Dev\Main\Apps\Source\TestAutomationUtilities\TAUtilities\UITesting\RanorexTesting\RanorexUIAdapter.cs:line 138
2017_08_17.16_25_47 [000018]00052.069:SetAutomationMode start: Mode: WPF
2017_08_17.16_25_47 [000018]00052.069:SetAutomationMode end WPF
2017_08_17.16_28_38 [000024]00223.061:RanorexUIAdapter.FromProcess start TimeoutMS 1800