05-06-2011, 09:55 PM
It's working fine in my system.
Can you please try again becuase the syntax is correct. Possibly you might be missing the End If for other conditional loop, but there is nothing wrong in this.
Code:
Browser("Wisdom CTE").Dialog("File Download").WinButton("Save").Highlight(0)
Browser("Wisdom CTE").Dialog("File Download").WinButton("Save").Click
Browser("Wisdom CTE").Dialog("File Download").WatiProperty "visible",true,20000
'Now check whether the dialog box is exist (Identify)
If Browser("Wisdom CTE").Dialog("File Download").Exist Then
'Now check whether the Save button is exist or not
If Browser("Wisdom CTE").Dialog("File Download").Winbutton("Save").Exist Then
Browser("Wisdom CTE").Dialog("File Download").Winbutton("Save").Click
Else
Msgbox "No luck with the button identification, but successfully identified the dialog box."
End If
Else
Msgbox "No luck with window identification. Update the dialog box object properties to get uniqueness."
End If
Can you please try again becuase the syntax is correct. Possibly you might be missing the End If for other conditional loop, but there is nothing wrong in this.
Thanks,
SUpputuri
SUpputuri