Hi,
Follow the below mentioned steps:-
1. Use datatable.getrowcount to calculate the number of rows in your
datatable.
2. start a loop from 0 to (count-1) step 1
3. Browser("Browser").Page("Page").Link( "Text:="&
DataTable("ID_NUM",dtLocalSheet)).Click
Note:- If u want to click on a particular link in data table then use
datatable.setcurrentrow method.
Regards,
Gaurav
On Wed, Feb 20, 2013 at 2:33 AM, qtptest applications <
[email protected]> wrote:
> Hello,
>
> 1. using object spy check what this ID property is
> 2. Now create a link description using this property (Take the value for
> the property from the datasheet)
> 3. If needed add more property value pairs
> 4. Create an object array using this description
> 5. Within a loop, you will be able to click each link (make sure you go
> back to the page after you click the link)
>
>
> Thanks,
>
>
>
>
> On Tue, Feb 19, 2013 at 1:45 AM, Priya Lall <[email protected]>wrote:
>
>>
>> hi I have dome the same thing .but my qtp is not able to idnetify it
>> ..please help
>> On Thursday, 29 March 2012 18:42:03 UTC+5:30, KK wrote:
>>>
>>> try this..
>>>
>>> Browser("Browser").Page("Page"**).Link( "Text:="& DataTable("ID_NUM",**
>>> dtLocalSheet)).Click
>>>
>>>
>>> On Thu, Mar 29, 2012 at 5:28 PM, jsmit <[email protected]> wrote:
>>>
>>>> As in something like this?
>>>>
>>>> Browser("Browser").Page("Page"**).Link( "Text:=DataTable("ID_NUM",
>>>> dtLocalSheet)").Click
>>>>
>>>> I'm very new to QTP so I had to google to figure out what DP was - but
>>>> even then I am not sure how to use it correctly - specifically how to
>>>> access the data table to determine the link text.
>>>>
>>>> On Mar 28, 3:04 pm, Deepak Kumar Mahapatro
>>>> <deepakkumarmahapatro...@**gmail.com> wrote:
>>>> > use DP for the link object with text property
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Wed, Mar 28, 2012 at 7:27 PM, jsmit <[email protected]>
>>>> wrote:
>>>> > > I have a web application that has multiple links on it that are
>>>> > > basically the ID number of the task it opens. Each one is unique.
>>>> >
>>>> > > I'd like to load a data table to QTP that has the task ID and then
>>>> QTP
>>>> > > will click the link that is the same as the task ID.
>>>> >
>>>> > > I used the record function in QTP to record myself manually
>>>> performing
>>>> > > the test on a specific ID, thinking I could edit the test to tell it
>>>> > > to look at the data table for the task ID to determine the next link
>>>> > > to click. However I don't know how to do this. I've successfully
>>>> > > done this with data input text fields but not for links. Is there a
>>>> > > way to do this?
>>>> >
>>>> > > In the expert view of the test it shows the following...
>>>> > > Browser("Browser").Page("Page"**).Link( "0005365291235").Click
>>>> >
>>>> > > Basically I want to somehow have QTP reference the data table to
>>>> > > determine what link to click (changing out 0005365291235 for the
>>>> data
>>>> > > table.
>>>> >
>>>> > > Any help would be greatly appreciated.
>>>> >
>>>> > > --
>>>> > > 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
>>>> > > MercuryQTP+unsubscribe@**googlegroups.com<mercuryqtp%[email protected]>
>>>> > > For more options, visit this group at
>>>> > >http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>> >
>>>> > --
>>>> > Regards,
>>>> > Deepak
>>>>
>>>> --
>>>> 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
>>>> MercuryQTP+unsubscribe@**googlegroups.com<mercuryqtp%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>>
>>>
>>> --
>> --
>> 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.
>>
>>
>>
>
> --
> --
> 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.
>
>
>
--
GAURAV SHARMA
S/W ENGG.
ACCENTURE
--
--
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.