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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write script for bitmap image?

1534


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

615


What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?

1784


What is the recovery scenario in qtp?

566


What are the Disadvantages of shared object repository?

564






How to record application running on the Virtual machine?

634


Write a script to verify font style and color of a windows object using descriptive programming

830


How will you report the bug and explain the defect tracking sheet you handled?

2542


What are the views available in quicktest professional?

557


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1321


Explain the qtp test phases.

611


Is it possible to switch between recording modes during a test creation?

588


Can U Explain about QTP tool from older version to latest version also its differences?

1511


Explain different checkpoints in qtp.

716


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?

1514