in qtp how i can retrive from a browser how many links are
there.means total no of links used in a browser

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you are testing a web application then what will you test in that application?

1538


When to use descriptive programming?

586


What are the Test design techniques you uses in ur project?

1479


Your roles and responsibilities and daily tasks? (As automation tester)

2576


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1472






Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2097


If I give some thousand tests to execute in two days what do you do?

580


What are test settings and global settings?

577


What are the different types of recovery operation?

549


what r the main attributes of test automation?

1474


How will you report the bug and explain the defect tracking sheet you handled?

2544


whow much strong on VB and C?

1482


Which environments does qtp support?

670


what is supply chain management?

2083


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

1209