Description 正则哪个版本开始支持的
Description对象属性的正则哪个版本开始支持的,知道的顶一下,谢谢Set des = Description.Create()
des("micclass").value = "Dialog"
des("regexpwndtitle").value = "Microsoft Internet Explorer|Windows Internet Explorer|来自网页的消息"
des("regexpwndtitle").regularExpression = True
Set DialogObjs = Desktop.childobjects(des)
print DialogObjs.count
上面代码在9.0中找不到 Dialog,只有将regexpwndtitle属性写死字符串才能识别 9.0应该是支持的 哎,Desktop下问题真多,硬是不能正则属性,Browser对象下就是正常的,无语了
Dialog处理也有BUG。。。
Set des = Description.Create()
des("micclass").value = "Dialog"
des("regexpwndtitle").value = "Microsoft Internet Explorer"
des("regexpwndtitle").regularExpression = True
Set DialogObjs = Desktop.childobjects(des)
a = DialogObjs.count
b = DialogObjs.item(0).exist(0)
当有Dialog时,上面代码执行后,a = 1,b会出现 false ... 而且执行了b那句话以后该Dialog运行对象就挂了,再用SPY会出错。。。真郁闷
This object has been reloaded, or is no longer available. Use the pointing hand to select the object again.
页:
[1]