WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

WinAppDrivere doesn't see elements in tab

Open noob001 opened this issue 6 years ago • 3 comments

We have a wpf application, and we have tabs in it, that loads from modules of this app and packed in .dll with another parts of this module. In tabs we have DevExpress controls. Inspect.exe doesn't see elements in tab, But Snoop - can see all of them. How can we make WinAppDriver see these elements to automate UI testing? It looks like I can see TAB from winAppDriver, but cannot see child elements of this tab, see only like what i can see in inspect.exe

image

noob001 avatar Feb 25 '20 09:02 noob001

DevExpress controls are different from other Windows controls. I remember in a past project we had to buy a license from DevExpress to automate an application with Coded UI which was using DevExpress.

naeemakram avatar Feb 26 '20 13:02 naeemakram

DevExpress controls are different from other Windows controls. I remember in a past project we had to buy a license from DevExpress to automate an application with Coded UI which was using DevExpress.

After a few days of researching i think, that problem is in application architecture. Looks like WinAppDriver can't see elements of tab, which packed in another module dll's. Maybe someone know how to fix it?

noob001 avatar Feb 26 '20 13:02 noob001

Fix them by this - https://www.colinsalmcorner.com/genericautomationpeer--helping-the-coded-ui-framework-find-your-custom-controls/

We add in our custom controls AutomationPeers (And also makes a child of TabControl with AutomationPeers) and it works.

noob001 avatar May 25 '20 09:05 noob001