for example one window is there, the window contains how
many edit box's i want script? i know the script but that is
not exact answer....
The script is like this ..........
set a=description.creation()
a("Native class")="WinEdit"
b=window("Flight Reservation").childobject(a).count
msgbox b
Answer Posted / softwaretester4u
use this example for windows alos
Step1: Set Objects = Browser("BrowserName").Page
("PageName").ChildObjects
Step2: Objectcount = Objects.count
Linkcount = 0
Step3: For i = 1 to Objectcount-1
Link = Objects(i).GetROProperty("micclass")
If Link = "Link" Then
Linkcount = Linkcount+1
msgbox Linkcount
End If
Next
msgbox Linkcount ' It show total number links
Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set Lists = Browser("Google").Page("Google").ChildObjects
(oDesc)
NumberOfLists = Lists.Count()
linkcnt = 0
For i = 0 To NumberOfLists - 1
linkcnt = linkcnt+1
Next
msgbox linkcnt
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the short cut keys for the following?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
Should have experience in framework means?
What is clean sweep?
what is the difference between data driver & data driven and driver script?
How many add-ins comes by default with quicktest professional?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
How to get Traceability matrix from TD?
How to add verification steps to tests?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
How to modify the text checkpoint?
Explain about datafile/verification of date file when file is not available in local system?
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
How many add-ins comes by default with qtp?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.