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
How to add synchronisation points in qtp?
what frame work you are following?
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
What is the short cut keys for the following?
How we can import data from database?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
Why is Client side image is preferred over server side image?
Differences between text and test area checkpoints?
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
What is a recovery scenario?
if numbers are always changing write a script for that
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
What is the parameterization? Give one example?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);