microsoft / microsoft/axe-windows

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

Open
#662 2 comments 0 reactions 1 assignee View on GitHub

@waabid is already working on this.

Since Dec 9, 2021.

status: new
Dominant language
C#
Stars
159
Forks
62
PR merge metrics
No merged PRs in 30d

Description

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 -

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.