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
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
Explain the differences between table and db checkpoints?
What is Curd testing?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
How to export quicktest professional (qtp) results to an .xls file?
Key word driven framework
Explain process of smart Identification in QTP?
Where can I find and view run-time data table?
What are the technics follow in writing VB script?
What are the five challenges you faced in QTP?
give me the code to save all messages of inbox of gmail into a folder and notepad
Name the different types of recording modes?
Hi, how can we check or avoid the memory leakage in QTP9.2?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
What is difference between shared and local object repository?