Python-UIAutomation-for-Windows icon indicating copy to clipboard operation
Python-UIAutomation-for-Windows copied to clipboard

Border Control not visible by uiautomation library

Open salihaMr opened this issue 7 years ago • 4 comments
trafficstars

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,

salihaMr avatar Oct 17 '18 08:10 salihaMr

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.

yinkaisheng avatar Oct 18 '18 03:10 yinkaisheng

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,

salihaMr avatar Oct 18 '18 07:10 salihaMr

Microsoft UIAutomation doesn't allow you to add a new control. You can only use the controls it provides. There is no way.

yinkaisheng avatar Oct 18 '18 09:10 yinkaisheng

Thank you for your reply.

salihaMr avatar Oct 18 '18 12:10 salihaMr