How can i check all the button that are enabled in a
widnows based application ? What script should i write for
this ?
Answer / jay prakash
Try this... i am writing for "Flight Reservation" sample
application. You can coustomize for your own requirements.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''SCRIPT STARTS HERE'''''''''''''''''''''''''
Dim i, j, iRes
j=0: iRes=1
Window("Flight Reservation").Activate
Set oDesc = Description.Create
oDesc("Class Name").value="WinButton"
Set oChild = Window("Flight Reservation").ChildObjects
(oDesc)
iCount = oChild.count
For i = 1 to iCount
strBtnStatus = Window("Flight
Reservation").WinButton("Class Name:=
WinButton", "index:="&j).GetROProperty("enabled")
j = j+1
If strBtnStatus="False" Then
iRes = 0
Exit For
End If
Next
If iRes=1 Then
MsgBox ("All buttons are enabled")
Else
MsgBox ("All buttons are not enabled")
End If
Set oDesc = Nothing
Set oChild = Nothing
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''SCRIPT ENDS HERE''''''''''''''''''''''''''''
Please let me know if it satisfies your requirement.
| Is This Answer Correct ? | 5 Yes | 0 No |
What is difference b/w AOM,DOM,COM Have u ever is used ny of the models.If so why?
How does QTP identifies the object in the application?
hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?
What is the difference between the keyword view and expert view?
Which property do you use to retrieve or assign data into a cell in a Data Table object?
How will you find the current time of the remote machine using QTP script?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
MANUAL TESTING, AUTOMATION TESTING QTP,QC , Load Runner , SELNEIUM ONLINE TRAINING
Please explain the role of Regular expression in QTP
Explain the Keyword View ?
What is the difference between driver-script and AOM-script?
hi gavasker i want how to merg OR's in QTP 8.2 by QTP Plus