Posts: 8
Threads: 5
Joined: Oct 2009
Reputation:
0
07-15-2010, 11:53 PM
for eg. On google search page, I enter text "advanced qtp" and click on google search button. It shows no. of pages with result. I want to search for a specific text "Advanced Qtp - Students Hang Out". But I dont know on which page the expected text is lying. My script shd look for the expected text "Advanced Qtp - Students Hang Out" on each page one by one and if it finds the expected result then it shd show a message PASS and the page no. can anyone send me the script ?
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
07-16-2010, 09:40 AM
you should ask for a praticular issue you face to resolve your tasks rather asking for complete script. if you try yourself, you will learn more.
what we can help you now is with guidelines if you need -
1. after submitting your text at google page get all the links from page you can use 'Description.Create' method.
2. get the current page initialized as 1.
3. loop through all the links you get and look for the text in each link, you can use 'instr' if found return the link and current page
3. click the next page link and do the same again
let us know if you face any issue in implementing this.