51Testing软件测试论坛

标题: winedit的GetTOProperty("text")不能获取text的值 [打印本页]

作者: likus    时间: 2011-12-22 15:27
标题: winedit的GetTOProperty("text")不能获取text的值
Dim text
text=window("XX").WinEdit("XX").GetROProperty("text")
msgbox text

上述代码,不知道为什么取不到text的值,其中的winedit对象是不可编辑的框,就是框里面有一个值,但是不能编辑.  大家知道为什么吗?
作者: likus    时间: 2011-12-22 15:47
ding, 大神们,帮帮忙。。。
作者: chenliquan    时间: 2011-12-22 17:16
回复 2# likus
使用GetROProperty("value")
作者: likus    时间: 2011-12-23 11:49
回复 3# chenliquan
不行呀,还是有错误,我弄了好久了,就是取不到
作者: Shawn_xiao    时间: 2011-12-23 12:48
Dim price
price=Window("Flight Reservation").WinEdit("Price:").GetROProperty("text")
msgbox price

飞机的例子  完全可以取到值啊  不知道你怎么弄的。   不行你把text换成regexpwndtitle试试吧




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2