how can i count the number of links???
Answers were Sorted based on User's Feedback
Answer / nalini
There are two ways to get the count of links on a page.
1) g=Browser("Google").Page("Google").GetROProperty("number
of links")
print g
2) set ld=description.Create()
ld("micclass").value="Link"
set lobj=Browser("Google").Page("Google").ChildObjects(ld)
c=lobj.count
print c
| Is This Answer Correct ? | 1 Yes | 0 No |
Using child objects we can count the links. script is as
given below
SystemUtil.Run "www.hdfcbank.com"
Set aa=description.Create
aa("html tag").value="TD"
set bb=Browser("name:=HDFC Bank.*").Page("title:=HDFC
Bank.*").childobjects(aa)
cc=bb.count
msgbox cc
For i=0 to cc-1
bb(i).highlight
Next
| Is This Answer Correct ? | 1 Yes | 1 No |
Write script to fetch the data from global sheet where row number is 3 and parameter is "text"
3 Answers Accenture, Thomson Reuters,
Analyzing the checpoint results?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?
what is stepin & stepout?
How will you set a unique four digit number in an edit field in QTP?
What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?
How to make arguments optional in a function?
Your roles and responsibilities and daily tasks? (As automation tester)
after initiating one project for testing, when exacltly QTP tester role starts?
Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?