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 / dinesh1433

If the each result page opens on the same window

set objHierachy=Browser("title:=Google.*").page("title:=Google.*")

With objHierachy
.WebEdit("name:=q")
.set "rose"
.WebButton("name:=btnK")
wait 2
'by default the search result shows in 1st page,
'so will write code for next 9 pages to see the result.
' if the next pages opens in the same window

For i=2 to 10
.Link("name:="&i).click
If i=10 then
.close
End If
Next

End With

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please any one can explain the keyword driven framework. with gmail example.

1633


How to find the length of the string in qtp?

586


Explain different types of checkpoints?

570


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1684


Explain QTP using different development techniques ?

547






Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

1879


What are metrics and matrix?

1375


What is ‘object spy’ and what is the function of object spy in qtp?

583


what is keyword driven testing in qtp?n how is it useful?

1497


What is a reusable action?

583


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1732


Connect to QC using AOM.

1247


What is the parameterization? Give one example?

600


how to acess a test in RSA?

1676


What is the Difference between test object and run time object?

619