Develop
the script for clicking on a ok button if it is existing and enabled otherwise
the corresponding message should be reported to the result window
Form
1
OK
BUTTON EXIST(FLIGHT APPLICATION)
var=Dialog("Login").WinButton("OK").Exist
MsgBoxvar
If var=true
Then
var1=Dialog("Login").WinButton("OK").GetROProperty("enabled")
If var1=true
Then
Dialog("Login").WinButton("OK").Click
else
Reporter.reporteventmicDone,"my
report","Ok button is disable"
End If
MsgBox var1
else
Reporter.reporteventmicDone,"my
report","Ok button is not avaliable"
End If
No comments:
Post a Comment