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 are benefits of qtp?
With what extension you can save the list of tests in a file to run in test batch runner?
What is active screen?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
i can done the project with QTP in that time i can say how many members in my team size?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
Write a script to customize the test results in PDF and HTML format.
What are the major/ important methods, functions in QTP we use realtime testing
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
What is the use of text output value in quicktest professional?
How software tester can use constants and variables in scripts?
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this
Explain how you can replace string in qtp?