06-04-2008, 04:09 AM
(This post was last modified: 06-04-2008, 04:15 AM by Anshoo Arora.)
But, what are you running? All I see there are some object references. That code will not perform any action on your AUT.
See if this helps:
Try to use only the properties that are enough to uniquely identify the object. Also, while you at it, can you double check the WinButton's text property again?
See if this helps:
Code:
Set oBrowser = Browser("micclass:=browser")
Set oPage = Page("micclass:=Page")
Set UserName = oPage.WebEdit("name:=username", "index:=0")
Set PassWd = oPage.WebEdit("name:=password", "index:=1")
Set LoginLink = oPage.Link("innertext:=login")
Set oDialog = oBrowser.Dialog("text:=Avviso di Protezione")
Set btnSi = Browser("micclass:=Browser").Dialog("text:=Avviso di Protezione").WinButton("text:=&Sì")
Try to use only the properties that are enough to uniquely identify the object. Also, while you at it, can you double check the WinButton's text property again?