51Testing软件测试论坛
标题:
对象识别问题
[打印本页]
作者:
taoyi_cheng
时间:
2005-11-8 17:07
标题:
对象识别问题
现在有一个提示框,sqafindobject("type = window ;Caption=Microsoft Internet Explorer")识别不出来,请大家帮我看看。我把这个提示框的属性贴上来。图片在附件里。谢谢
Window,Caption=Microsoft Internet Explorer
Properties
Width = 267.00000
Height = 114.00000
Visible = True
Enabled = True
Left = 584.00000
Top = 331.00000
Caption = Microsoft Internet Explorer
WindowState = Normal
WindowStyle = Popup
BorderStyle = Dialog Frame
SystemMenu = True
MinButton = False
MaxButton = False
Label,ObjectIndex=1
Properties
Width = 194.00000
Height = 15.00000
Focus = False
Visible = True
Enabled = True
Left = 62.00000
Top = 20.00000
Text = 用户名或密码输入错误,请重新输入!
Alignment = Left
PushButton,ObjectIndex=1
Properties
Width = 75.00000
Height = 21.00000
Focus = False
Visible = True
Enabled = True
Left = 93.00000
Top = 57.00000
Text = 确定
Default = False
作者:
ilovejolly
时间:
2005-11-8 17:15
http://bbs.51testing.com/viewthr ... =class%2Bilovejolly
作者:
taoyi_cheng
时间:
2005-11-8 17:24
谢谢ilovejolly
!
作者:
taoyi_cheng
时间:
2005-11-9 11:49
看了版主给的连接里的解决办法,可以解决问题。但是sqafindobject("Type=label;Caption=Microsoft Internet Explorer;Class=#32770")
可以识别要识别的提示框,可是这句话同样可以把一个新的页面窗口:"type=Window;Caption=××社区 - ×××信息技术有限公司 - Microsoft Internet Explorer"识别出来。这怎么办呢?这里两个窗口的Caption是不同的,怎么会都识别出来呢?
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2