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
> <[email protected]> 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
> > > [email protected]
> > > For more options, visit this group at
> > >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
> [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
"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