I hope, those two objs Text and the link would exist in a WebTable
Case 1:
If the link is dynamic then you can use the .ChildItem method to solve your
issue.
rw=Browser(XX).Page(XX).WebTable(XX).GetRowCount
cl=rw=Browser(XX).Page(XX).WebTable(XX).GetcolumnCount
For i =1 to rw
For j=1 to cl
If Browser(XX).Page(XX).WebTable(XX).GetCellData(i,j)=Text Then
Browser(XX).Page(XX).WebTable(XX).ChildItem(i,j,"Link",0).Click
End If
Next
Next
Case 2: If the Link is static
Browser(XX).Page(XX).Link(XX).Click
On Mon, Aug 22, 2011 at 5:54 AM, Blessy <[email protected]> wrote:
>
>
>
> Hi,
>
> How can I tell qtp to click a link beside a particular text.Please let me
> know the script code.
> Thanks.
>
> --
> 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