08-16-2010, 06:28 PM
Is this related to web browser button, i am using a windows app. where i have recorded my scenario....i want to check if a button is disabled or not...here is a part of my code:
Suppose here WinButton("Login") is disable and i want it checked then what code should i give..???
Code:
Window("My App").WinMenu("Menu").Select "<Item 2>;<Item 1>"
Window("My App").Dialog("Login to ENOVIA V6").WinEdit("Separator").SetSelection 0,15
Window("My App").Dialog("Login to My App").WinButton("Login").Click
Window("My App").WinMenu("Menu").Select "<Item 2>;<Item 2>"
Window("My App").WinMenu("Menu").Select "<Item 2>;<Item 1>"
Window("My App").Dialog("Login to My App").WinEdit("Separator").SetSelection 0,15
Window("My App").Dialog("Login to My App").WinEdit("Separator").Type micTab
Window("My App").Dialog("Login to My App").WinEdit("Password").SetSecure "4c64d533a35df20a60ddc622"
Window("My App").Dialog("My App").WinButton("Login").Click
Dialog("Login Error").WinButton("OK").
Suppose here WinButton("Login") is disable and i want it checked then what code should i give..???