in qtp how i can retrive from a browser how many links are
there.means total no of links used in a browser
Answers were Sorted based on User's Feedback
Answer / sandeepguttikonda
To get the count of total number of links in a browser we
need to use "Childobjects".
And we can perform this by using the below code:
/* Creating the description object*/
Set oDescFrame = Description.Create
oDescFrame("micclass").Value = "links"
Set Links_Count = Browser("name:="&Browsername).page
("title:="&Pagetitle).ChildObjects(oDescFrame)
Msgbox &Links_count.count
This will display the total number of links in a page.
Please let me know if you need any further info.
Thanks.
Regards,
Sandeep Guttikonda
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / santhosh
Set a = Description.Create
a("micclass").Value = "Link"
Set b = Browser("name:=Yahoo! India").page("title:=Yahoo!
India").ChildObjects(a)
msgbox b.count
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rajanikanthreddy
set desc=description.create()
desc("html tag").value="A"
set a=browser("name:=Book Store").page("title:=Book
Store").ChildObjects(desc)
print a.count
For i=o to a.count-1
b=a(i).getroproperty("text")
print b
next
| Is This Answer Correct ? | 4 Yes | 0 No |
We have 10 rows of records in data table, but we have to run 4th, 5th and 6th rows only. How can we handle this scenario in QTP?
5 Answers Accenture, Banca Sella, Polaris,
How you calling actions in qtp?
What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository?
Tell me the situations where we will use Data Driven?
I want to test advanced Java applications what kind of add- ins I have to install?
How to handle the exceptions using the recovery scenario manager in qtp?
How would you export a script from one pc to another in qtp?
Why we are going for descriptive programming ? I answered as 'If objects are not present in OR we will go for descriptive Programming'? Is this correct ?
hi is there any chance to change encoding the password
Explain the check points in QTP?
22 Answers Gray Matrix, IBM, Microsoft, Prapan Solutions, Zensar,
in a web page How to check and display a particular word from a paragraph?
i have batch scripts in qtp and i want to update the status like pass/fail in excel sheet after excecuting the every script in batch.how to write the script for this?