white学习14(官方网站的内容)
2011-04-26 14:28
253 查看
Third Party Controls
White provides support for all the controls which comes with standard .NET libraries. This support is partially just abstraction over UIAutomation and window messages. So, in case of third party controls like DevExpress, PureComponents etc, there are no standard UIItem implementation in white which you can use out of the box. The reason being the automation element structure beneath is unique to each of them. These Custom UI Item can be plugged in to white.
While implementing these you might face issues. Some known issues and possible resolution is provided below. Soon we would have a sample for each of them available here:
Do not rely on UISpy
UISpy comes along with .NET SDK. Please do not trust UISpy, it doesn't tell everything even for standard controls. You can use LogStructure() method to see what is present inside the control. This method is available on all the UIItems including window. It prints out the entire UIA tree which is helpful, if you are having problem finding UIItems. The structure would be logged in log file (and console if configured) as configured in log4net Configuration.
A lot of people on the white forums have been successful with http://www.codeplex.com/UIAutomationVerify for the same.
Silverlight
Some of the controls http://msdn.microsoft.com/en-us/library/cc645045(VS.95).aspx?ppud=4 which come with silverlight do not have built-in support for UIAutomation. Hence white cannot recognize them. This would be fixed in next release. The link also provides some insight into how to do this. Code samples would be made available pretty soon here.
Focusing the UIItem
...using Focus method, sometimes activates the UIAutomation to fetch the internal elements.
White provides support for all the controls which comes with standard .NET libraries. This support is partially just abstraction over UIAutomation and window messages. So, in case of third party controls like DevExpress, PureComponents etc, there are no standard UIItem implementation in white which you can use out of the box. The reason being the automation element structure beneath is unique to each of them. These Custom UI Item can be plugged in to white.
While implementing these you might face issues. Some known issues and possible resolution is provided below. Soon we would have a sample for each of them available here:
Do not rely on UISpy
UISpy comes along with .NET SDK. Please do not trust UISpy, it doesn't tell everything even for standard controls. You can use LogStructure() method to see what is present inside the control. This method is available on all the UIItems including window. It prints out the entire UIA tree which is helpful, if you are having problem finding UIItems. The structure would be logged in log file (and console if configured) as configured in log4net Configuration.
A lot of people on the white forums have been successful with http://www.codeplex.com/UIAutomationVerify for the same.
Silverlight
Some of the controls http://msdn.microsoft.com/en-us/library/cc645045(VS.95).aspx?ppud=4 which come with silverlight do not have built-in support for UIAutomation. Hence white cannot recognize them. This would be fixed in next release. The link also provides some insight into how to do this. Code samples would be made available pretty soon here.
Focusing the UIItem
...using Focus method, sometimes activates the UIAutomation to fetch the internal elements.
相关文章推荐
- white学习10(官方网站的内容)
- white学习10(官方网站的内容)
- white学习13(官方网站的内容),介绍White.NUnit
- white学习12(官方网站的内容),介绍一个捕获元素工具UISpy
- white学习2(官方网站的内容)
- white学习15(官方网站的内容)
- white学习3(官方网站的内容)
- white学习4(官方网站的内容)
- white学习5(官方网站的内容)
- white学习6(官方网站的内容)
- white学习7(官方网站的内容)
- white学习8(官方网站的内容)
- white学习16(官方网站的内容)
- white学习9(官方网站的内容)
- Git学习之命令集锦(摘自瘳雪峰的官方网站)
- 廖雪峰官方网站python学习笔记:第一个Pyhon程序
- 思科学习空间(思科官方网站)
- 参考TinyOS官方网站学习基于printf库的打印调试
- OpenCV官方文档学习记录(14)
- ES权威指南[官方文档学习笔记]-14 phrase search