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 |
write a regular expression pattern for xyz?123?
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
How can you give wait up to 10 seconds in qtp?
I want to open a Google page without recording a test and i do not want to use system.Util.run command as well how do i do this?
Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance
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
When testing a web application, the url for each page changes, so using QTP how do u handle this scenario. If anyone knows please answer in detail about the whole procedure. Thanks a lot.
What is the difference between driver-script and AOM-script?
I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?
What is difference in global and action sheet in qtp?
What r the features of QTP9.2,other than QTP8.0 What r the extre features of QTP9.2.
How to resume the second iteration in the QTP,, if the error has intrupted the the second iteration. When i use run from step it starting from the first iteration again.