Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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...

Answers were Sorted based on User's Feedback



In google i'm going to search something like "rose", i usually get 10 results in..

Answer / gaurav anand

there would be many links in the google search page.Some are actual search results and some are ads and recommendations, ads etc.. So, first task is to classify these links. It can be achieved by using webtable concept as these links would be in different webtables. Now, fetch the links in the search results webtable by using the row and the child objects property. After that,for each link, open and close it and when this loop is done , click on the next page arrow present in the page in the outer loop.When this loop is done, scenario is covered.

Is This Answer Correct ?    0 Yes 0 No

In google i'm going to search something like "rose", i usually get 10 results in..

Answer / sathya

Set odesc = Description.create

odesc("micclass").value="Browser"
Set Listofbrowser = Desktop.ChildObjects (odesc)
Counter = Listofbrowser.count
Msgbox Counter

For i=0 to Counter-1
val1 = Listofbrowser(i).Page("title:=Rose - Wikipedia, the free encyclopedia").WebElement("html id:=content").GetROProperty("innertext")

Msgbox val1
val2 =Split(val1, "rose" )
val2 = Ubound (val2)

Msgbox Val2
Listofbrowser(i).close
Next

Please correct me if am wrong.......Thanks

Is This Answer Correct ?    0 Yes 1 No

In google i'm going to search something like "rose", i usually get 10 results in..

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

In google i'm going to search something like "rose", i usually get 10 results in..

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

More QTP Interview Questions

If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


What the differences are and best practical application of Object Repository?

0 Answers  


What is object & properties (in QTP)

5 Answers   Ordain Solutions,


How u perform Batch Program in QTP?

3 Answers  


How to identify whether a web page exists or not without using Browser(" ").Page(" ").Exist?

1 Answers  


Is virtual object supported in low level recording mode?

0 Answers  


Can I do Game testing with QTP tool

1 Answers   Google,


Hi, I am new into the field of testing and I need to know how can I begin automating the testing of Mainframe applications using QTP. Can anyone help me?

0 Answers  


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

0 Answers  


How to capture text from image to word

2 Answers  


Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). Pls anyone, very urgent

1 Answers  


What is the extension of the recovery scenario file in qtp?

0 Answers  


Categories