上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: using System;using System.Collections.Generic;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Windows.Automation;using System.Threading;namespace UIANotepad{ class NotepadAutomationDemo { static AutomationElement notepadWin = null; s 阅读全文
posted @ 2011-01-14 10:31 Luke Zhang 阅读(670) 评论(0) 推荐(0) 编辑
摘要: Windows API, MSAA以及UIA一个也不能少。 阅读全文
posted @ 2011-01-08 21:55 Luke Zhang 阅读(657) 评论(0) 推荐(0) 编辑
摘要: UIAutomation是微软从Windows Vista开始推出的一套全新UI自动化测试技术, 简称UIA。在最新的Windows SDK中,UIA和MSAA等其它支持UI自动化技术的组件放在一起发布,叫做Windows Automation API。 阅读全文
posted @ 2011-01-08 21:53 Luke Zhang 阅读(7293) 评论(0) 推荐(0) 编辑
摘要: 可以用一个dictionary来保存找到的控件;其中String记录找到控件的full-path name;对于从根目录搜索的控件的full-path name的写法,可以借用*。控件搜索可以分为按AutomationID搜索,和按Name搜索;但是如果组合AutomationID和Name进行搜索,效果会更好; 阅读全文
posted @ 2011-01-07 21:08 Luke Zhang 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 我所认为的应该遵循的设计原则: 1、 将控件的查找和操作分开; 2、 暂时保存查找到的控件,以备子控件查找或者属性获取; 3、 能够步进查找的控件一定不要从根目录查找;弹出对话框则应该从根目录findall + descendants 查找; 阅读全文
posted @ 2011-01-06 11:44 Luke Zhang 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 一个ID名只能应用于页面上的一个元素,而同一个类名可以应用于页面上任意数量的元素。 阅读全文
posted @ 2010-10-26 17:45 Luke Zhang 阅读(4769) 评论(0) 推荐(0) 编辑
摘要: 在创建了一个Xml Schema文档之后,就可以用它来验证xml文档的有效性了。做起来很简单,只需要在xml文档根元素内引用该schema文件就可以了。 阅读全文
posted @ 2010-09-26 16:45 Luke Zhang 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 如果基于socket编程的话,Winows平台与其它平台函数基本相同,实现跨平台比较容易。如果基于http进行编程的话,不同平台库差别很大,如果不考虑跨平台使用WinHttp,如果考虑跨平台可以考虑使用libwww。 阅读全文
posted @ 2010-08-31 14:58 Luke Zhang 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 当网卡速率设置为自动适应时主板和网卡间的通讯速度达不到网络的波动速率导致频繁的出现断开连接现象,建议设置固定速率上网。。。” 阅读全文
posted @ 2010-08-19 11:52 Luke Zhang 阅读(992) 评论(0) 推荐(0) 编辑
摘要: DNS指的是“域名服务器”,而WINS指的是“Windows互联网名称服务”。两者都是用来解析域名的,但是,使用的方法完全不同! 阅读全文
posted @ 2010-03-18 15:21 Luke Zhang 阅读(5401) 评论(0) 推荐(1) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页