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 |
Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?
what is stepin & stepout?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
what is the use of Browser.sync()
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
Give me brief idea about QTP automation object model?
How can we fill data in a text box without recording using object spy. Can you please provide the steps...
Synchronozation types in QTP
Is the qtp course will help to create a virtual object?
What is difference between WR and QTP?
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that