Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ERROR Automation017: Fail to get the root element of a process(11548) #662

Open
karkarl opened this issue Dec 9, 2021 · 2 comments
Assignees
Labels
status: new This issue is new and requires triage by DRI.

Comments

@karkarl
Copy link

karkarl commented Dec 9, 2021

Please check whether the bug has already been filed.

Describe the bug

I am trying to integrate Axe.Windows into Microsoft-ui-xaml testing pipeline and am running into some issues. It is returning this error:

Axe.Windows.Automation.AxeWindowsAutomationException: ERROR Automation017: Fail to get the root element of a process(11548): System.ArgumentNullException: Value cannot be null.
Parameter name: element
   at Axe.Windows.Actions.Contexts.ElementContext..ctor(A11yElement element)
   at Axe.Windows.Automation.TargetElementLocator.LocateRootElement(Int32 processId) ---> System.ArgumentNullException: Value cannot be null.

You can find the PR here, and the pipeline results here.

The VerifyAxeScanPasses pass locally with MSTests / TestExplorer via VS Studio but not with TAEF. It's failing trying to find the root UIA element of the MUXTestApp window, but I'm unsure why.

Desktop (please complete the following information):

  • OS: 19h1, rs2-5
  • Accessibility Insights for Windows Version: n/a
  • Target Application: [e.g. Chrome, Wildlife Manager]
  • Target Application Version: [e.g. 22]

Additional context

Priority requested -

@ghost ghost added the status: new This issue is new and requires triage by DRI. label Dec 9, 2021
@ghost ghost assigned waabid Dec 9, 2021
@karkarl
Copy link
Author

karkarl commented Dec 13, 2021

Update: the issue seems to be that it's missing a couple .dlls in the HelixPayload directory which is where the TAEF tests are running from.

@karkarl karkarl closed this as completed Dec 13, 2021
@karkarl karkarl reopened this Nov 11, 2024
@karkarl
Copy link
Author

karkarl commented Nov 11, 2024

I am hitting the issue again, this time with only a handful of failed instances.

Axe.Windows.Automation.AxeWindowsAutomationException: Failed to get the root element(s) of the specified process(6352) ---> System.Runtime.InteropServices.COMException: Operation timed out. (0x80131505)
Stack Trace:
at UIAutomationClient.IUIAutomationTreeWalker.GetFirstChildElement(IUIAutomationElement element)
at Axe.Windows.Desktop.UIAutomation.A11yAutomation.FindProcessMatchingChildrenOrGrandchildren(IUIAutomationElement root, Int32 pid, Boolean includeSelf) in D:\a_work\1\s\src\Desktop\UIAutomation\A11yAutomation.cs:line 113
at Axe.Windows.Desktop.UIAutomation.A11yAutomation.ElementsFromProcessId(Int32 pid, DesktopDataContext dataContext) in D:\a_work\1\s\src\Desktop\UIAutomation\A11yAutomation.cs:line 165
at Axe.Windows.Automation.TargetElementLocator.LocateRootElements(Int32 processId, IActionContext actionContext, IntPtr rootWindowHandle) in D:\a_work\1\s\src\Automation\TargetElementLocator.cs:line 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: new This issue is new and requires triage by DRI.
Projects
None yet
Development

No branches or pull requests

2 participants