Monday, 27 July 2015

WRITE A PROGRAMME FOR OK BUTTON EXIST OR NOT


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
                            


Text Box: OK
 






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