Try to use the OR to "Highlight in Application" the object.  If it
doesn't hightlight that you may have multiple tables that match this
object on the page.  If it does try .GetROProperty("innertext") to see
if you can get all the text of the table.  Then try
getting .GetCellData (1,1).  All these things are ways to troubleshoot
why you can't get the data you are looking for.

On Mar 14, 1:25 pm, ooth suresh <[email protected]> wrote:
> Yes I did, but still i couldnt get the value of the cell in the
> variable...Is something wrong with variable declaration?? I am expecting a
> value of "230;30" in the variable
>
> Regards
> Suresh S
>
> On Sat, Mar 14, 2009 at 9:17 PM, bhavin v patel <[email protected]> wrote:
>
>
>
>
>
> > Hey,
> > look up in QTP help about object JavaTable and how GetCellData
> > property use.
>
> > On Mar 13, 12:08 am, ooth suresh <[email protected]> wrote:
> > > hi
> > > I want to get the data in a cell of a table to be captured in a variable.
> > I
> > > tried the following command
>
> > > Dim Site1Coord
> > > Site1Coord = javawindow("new
> > > project").JavaTable("PropertyTable").GetCellData (2, 1)
>
> > > but still  Site1Coord says "Cannot Evaluate" in Watch column. Could
> > someone
> > > please help me in this case??
>
> > > Regards
> > > Suresh S- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to