Hi Satnam,

Below is the approach that you can use...


This web application and the task that you are trying is an ideal candidate
for descriptive programming approach.. :) So the best approach would be to
use DP and avoid Object Repository altogether (especially for the links of
college names)


If you would have noticed, for all the college names on a page, the link
has the following structure -
*http://www.indiacollegesearch.com/colleges/.<http://www.indiacollegesearch.com/colleges/>
..*

So, you can use ChildObjects approach to find all the college names on the
page which contain the given link. Then you can open each of the links in a
separate browser (or tab) one by one.

Then you can find the email of the college. Here also, you can use
descriptive programming/child objects approach to find out the college
email id. The common property that you can get here is the id, which has a
value* CollegeEmail*

If you use this approach, then you can avoid going back to the home page
after finding out the email id of a college.

Also, you would need to be careful about your loops.. Because to make this
logic generic, you would need to use more than 1 loop constructs..


If you need any further information about DP/Child Objects approach, you
can refer the below articles..

http://www.automationrepository.com/2012/03/descriptive-programming-in-qtp-the-complete-guide-part1/

http://www.automationrepository.com/2012/03/descriptive-programming-in-qtp-the-complete-guide-part-2/

Let us know if this approach works for you...


*cheers, a
*
*QTP Automation Repository <http://www.automationrepository.com/>*



On Mon, Jul 29, 2013 at 12:21 AM, Satnam Singh <[email protected]> wrote:

> Hello All,
>
> Please see the url
> http://www.indiacollegesearch.com/mba/colleges-delhi-ncr
>
> This url lists various colleges. What I want to do is using QTP, read the
> college name and put it into an excel sheet.
> Kindly help, as I am not sure how to proceed with this problem as the list
> is not under a webtable.
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Anish Pillai
My QTP Blog <http://automationrepository.blogspot.com>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to