开发者

Silverlight UI Automation of a Child Window and its controls?

I have trouble to make UI Automation o开发者_Python百科f the Child Windows. I cannot trace any element inside any child window in the project. I am using UISpy. I set AutomationProperties.AutomationId for all of items inside ChildWindows.

I am hoping to find the answer on thos topic. There is no much documentation on it or I was not able to find it. Any sample or ideas are highly appreciated!


There isn't good automation support for Popups in Silverlight at this time. Popups are not considered part of the main visual tree, so they are effectively disconnected. ChildWindows are shown in a Popup, so they are effectively disconnected as well.

Here is one possible solution, which basically tracks the popups/child windows and injects them as automation children of the parent page.

Apparently, Telerik also has a solution for their test suite, with a video here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜