Error accessing 'AutomationElement.RootElement'

0

I have an error accessing AutomationElement.RootElement of UIAComWrapper.

AutomationElement.RootElement.FindFirst(TreeScope.Children, new PropertyCondition(AutomationElement.ProcessIdProperty, idProcessoDevedorSolidario));

I have to mention that Nuget has installed along with UIAComWrapper.

  

{"Could not load file or assembly 'Interop.UIAutomationClient,   Version = 12.0.20617.1, Culture = neutral,   PublicKeyToken = b03f5f7f11d50a3a 'or one of its dependencies. The system   can not find file   specified. ":" Interop.UIAutomationClient, Version = 12.0.20617.1,   Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a "}

The reference points to.

  

Assembly Interop.UIAutomationClient       C: \ Program Files \ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ PublicAssemblies \ Interop.UIAutomationClient.dll

And the version there is Version = 12.0.21213.0, I already tried to change it with another dll, but it did not solve.

    
asked by anonymous 21.08.2018 / 17:37

0 answers