Python-UIAutomation-for-Windows
Python-UIAutomation-for-Windows copied to clipboard
Border Control not visible by uiautomation library
Hi,
I'm doing test automation for a UWP application, each icon of the application is covered by "Border" control. However, "BorderControl"s are not detected by UIautomation, What i'm doing is adding the "BorderControl" widget type to uiautomation, but it doesn't work! Someone have any suggestions?
Thanks,
Do you mean that BorderControl is a control in xaml? But there is no BorderControl in UIAutomation, according to https://docs.microsoft.com/en-us/windows/desktop/WinAuto/uiauto-controltype-ids.
Not all control types in a GUI Framework have corresponding control types in UIAutomation.
Hi, Yes, i need to localize the BorderControl type (is an xaml control), Is there a way to add a new control to UIAutomation so it will be recognized?
Thanks,
Microsoft UIAutomation doesn't allow you to add a new control. You can only use the controls it provides. There is no way.
Thank you for your reply.