Hi Girish,
I think you should try adding one more property for that link while
doing DP. Use text or class of that link with index properties. you
can also try adding its x and y coordinates. Further, If your link is
in any webtable, you can get the rowwithcelltext and then try making
an object then click on it.
You can do it like:
RowNum=Browser("").Page("").WebTable("").GetRowWithCellText("Text of
the Link")
ObjLink=Browser("").Page("").WebTable("").ChildItem(RowNum,Columnnum,"Link",Index)
ObjLink.Click
It will click on the link without any issue but only when the link is
in webtable.
Otherwise you can try above solution. Let me know if it is solved.
'here first you will have to get the index number of that particular
link
On Aug 5, 10:03 pm, shashank shekhar raj
<[email protected]> wrote:
> Do one thing Before executing this scenario check all the property of the
> particular link with the help of object spy
>
> and after execution of scenario again check all the properties for the
> particular link with the help of object spy and check that what difference
> occur . it's may be a functional error or some other reason ???
>
>
>
>
>
>
>
> On Thu, Aug 4, 2011 at 8:41 PM, Girisshhh <[email protected]> wrote:
> > Hi Folks ,
> > I am trying to automate a scenario where in I have to go to a home
> > page > get some data > move to next page(pg2) > and come back to home
> > to continue(Using the back button on this current page) .
> > Now when I am coming back to the main page , a certain link(pg2)
> > (which was being recognised earlier is not found by qtp).
>
> > any pointers to solve this issue would be appreciated .
>
> > P.S. : I am using DP .
>
> > --
> > 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