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
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
Explain building blocks of the bpt framework ?
Why script error occur in between recording in qtp?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
How to find array size in qtp?
what is the difference between IE & Netscape in web testing on a log in page
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
when a test case is written how u test using qtp
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
Can U Explain about QTP tool from older version to latest version also its differences?
What is the difference between byref and byval in qtp?
Does QTP record on Objects created on XWindows Environment?
With what extension you can save the list of tests in a file to run in test batch runner?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?