How to get Links count in an web application,without
descriptive programming?
Answer Posted / raghava
Hi guys
Here we have to use the description object.Its working with
me.Just try it out.
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
Regards
raghava
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
write the vb script for call to new action in qtp?
How many types of actions are there in quicktest professional (qtp)?
terminal services client
Explain the use of action split in qtp?
What are main panes available in qtp test browser?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
How do Parameterization and Data-Driving relate to each other in QTP?
after click on compose mail how can we attached a file in qtp with vbscript code
How many types of parameters are there?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
What is standalone database?
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
How do I get the QTP scripts result in xml format by using vb script function?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?