Re: [JWebUnit-users] How to use JWebUnit Table API's for HTML Tables without names or id

2010-02-25 Thread lakshmi somavaram
Hi Everyone that responded to my query, I used getElementsByXPath and I was able to get what I wanted from the HTML table that had no id or name. Thank you all for your help! Lakshmi On Thu, Feb 25, 2010 at 8:22 AM, Stand Trooper wrote: > I haven't used Xpather, but I do use firefinder quite a

Re: [JWebUnit-users] How to use JWebUnit Table API's for HTML Tables without names or id

2010-02-25 Thread Stand Trooper
I haven't used Xpather, but I do use firefinder quite a bit. thx timo On Thu, Feb 25, 2010 at 5:05 AM, Jonathan Slate wrote: > I've found the XPather Firefox add-on to be helpful in this regard, fwiw. > > Jevon Wright wrote: > > Hi Lakshmi, > > You could try getElementsByXPath("//table/tr[0]/

Re: [JWebUnit-users] How to use JWebUnit Table API's for HTML Tables without names or id

2010-02-25 Thread Jonathan Slate
I've found the XPather Firefox add-on to be helpful in this regard, fwiw. Jevon Wright wrote: Hi Lakshmi, You could try getElementsByXPath("//table/tr[0]/th[contains(text(), 'Attempts'])") or something similar. There's no straightforward way to do what you're asking, but using a series of XPa

Re: [JWebUnit-users] How to use JWebUnit Table API's for HTML Tables without names or id

2010-02-24 Thread Eric Jelinek
: Usage problems for JWebUnit Subject: [JWebUnit-users] How to use JWebUnit Table API's for HTML Tables without names or id Hi Jwebunit Users, The following is the HTML table code. Is there a way to count the number of rows, or get the data in the table using JWebUnit? Here the table does not

Re: [JWebUnit-users] How to use JWebUnit Table API's for HTML Tables without names or id

2010-02-24 Thread Jevon Wright
Hi Lakshmi, You could try getElementsByXPath("//table/tr[0]/th[contains(text(), 'Attempts'])") or something similar. There's no straightforward way to do what you're asking, but using a series of XPath expressions I think you should be able to manage that. Perhaps something like 1. Get the index

[JWebUnit-users] How to use JWebUnit Table API's for HTML Tables without names or id

2010-02-24 Thread lakshmi somavaram
Hi Jwebunit Users, The following is the HTML table code. Is there a way to count the number of rows, or get the data in the table using JWebUnit? Here the table *does not have the table id or name* associated with it. Without changing the HTML code, I want to be able to get the value of the colu