In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...

Answer Posted / usha

Set d = Description.create

d("micclass").value="Browser"

Set browsers=desktop.ChildObjects(d)
msgbox browsers.count

Set od = Description.create

od("micclass").value="Link"
'od("index").value=j
od("name").value="Rose.*"
od("html tag").value="A"

For i = 0 to browsers.count-1

'msgbox browsers(i).getroproperty("innertext")

Set links=browser("creationtime:="&i).page("name:=.*").childobjects(od)

msgbox links.count

For j = 0 to links.count-1

msgbox links(j).getroproperty("innertext")


Next


Next

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to customize qtp?

606


Whats the realtime QTP testing process

1989


When to use shared and local object repository?

628


How does QTP identify an object?

608


Where you get the run time data table?

575






How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1567


Which scripting language used by quicktest professional?

526


How to check which add-ins are associated with a test in qtp?

580


How to creating an output value using quicktest professional (qtp)?

565


What is the syntax to call one script from another?

534


Give me some real time point of way where exactly we can conduct audits?

1497


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1465


What are the different types of recording modes?

528


Explain about the test fusion report of quicktest professional (qtp)?

535


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1487