Re: [JWebUnit-users] how to assert that some row in a table contains the actual values
Brought to you by:
henryju
From: Jevon W. <je...@je...> - 2010-08-22 10:58:01
|
Hi, If the row, cell or containing label or span has a particular ID, you could use IElement getElementByID(); otherwise you could use an XPath expression like //table[@id=XXX]/tr[2]/td[2], etc. Jevon On Fri, Aug 20, 2010 at 8:38 PM, Rajiv Abraham <raj...@gm...>wrote: > Hi, My web page displays the following table( in an html format, but > simplified here). > > ItemId Item_Description Price Status > > ItemId_100 Item_Descr_COOKIE $68.00 Eligible > > ItemId_123 Item_Descr_RADIO $94.00 Eligible > > ItemId_300 Item_Descr_DIAPERS $54.00 Returned > > How do I use jwebunit to make an assertion that there is some row in this > table with ItemId=300 and status = "Returned" . That would in this case be > the third row in the table above. > > > -- > Thanks, > Rajiv > Nothing selected > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > JWebUnit-users mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > > |