对象识别问题
现在有一个提示框,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 http://bbs.51testing.com/viewthread.php?tid=17676&fpage=1&highlight=class%2Bilovejolly 谢谢ilovejolly
! 看了版主给的连接里的解决办法,可以解决问题。但是sqafindobject("Type=label;Caption=Microsoft Internet Explorer;Class=#32770")
可以识别要识别的提示框,可是这句话同样可以把一个新的页面窗口:"type=Window;Caption=××社区 - ×××信息技术有限公司 - Microsoft Internet Explorer"识别出来。这怎么办呢?这里两个窗口的Caption是不同的,怎么会都识别出来呢?
页:
[1]