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 any one can explain the keyword driven framework. with gmail example.
How to find the length of the string in qtp?
Explain different types of checkpoints?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
Explain QTP using different development techniques ?
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
What are metrics and matrix?
What is ‘object spy’ and what is the function of object spy in qtp?
what is keyword driven testing in qtp?n how is it useful?
What is a reusable action?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
Connect to QC using AOM.
What is the parameterization? Give one example?
how to acess a test in RSA?
What is the Difference between test object and run time object?