Page 1 of 1

When to use WPF or UIA?

Posted: Mon Nov 07, 2022 12:27 pm
by mrt
Dear all,

I wonder what is the best way to decide if one should go by WPF or UIA plugin?

In my AUT objects are recognized with both plugins, although structure and order differ greatly.

When building up the repository, I would want to avoid having to restructure everything at a later stage when I notice I should have gone with the other plugin.

Is a general rule of thumb to check for the shortest path or something like this?

thanks!

Re: When to use WPF or UIA?

Posted: Mon Nov 14, 2022 9:20 pm
by IvanF
Hi,

Overall, WPF plugin is recommended for WPF apps because
- it targets elements better. For example, a certain button or textbox can have more attributes which can be used for actions/validations.
- it is also faster since it detects interactive elements.
- there have been issues with the UIA plugin starting with Windows 10 21H2 and Windows 11. They should be at least partially resolved now, but the risk exists.

On the other hand, UIA plugin can be considered more "stable" overall, as it doesn't really depend on versions of technology stack, and it usually doesn't change that much. If there aren't any specific accessibility properties set in your WPF app and/or it is very frequently updated, UIA can be better since it doesn't require that much developer effort.