Feature Requests item #1063062, was opened at 2004-11-10 01:47
Message generated for change (Settings changed) made by jevonwright
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1063062&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Core API
Group: Release 2.1
>Status: Closed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Jevon Wright (jevonwright)
Summary: assertTableHasRows

Initial Comment:
Im testing a search page, in wich the result list
is --giving the same search parameter-- different
depending of if other users has added new values
in the database.
I want to test if the resulttable has result rows, 
and i dont want to test if the result table has a given 
structuer ...

i would like to suggest that there should be the following 
methods in the classes WebTester and WebTestCase 

* assertTableHasRows(String nameOrID) 
* assertTableHasRows(String nameOrID, int rowCount) 


----------------------------------------------------------------------

Comment By: Jevon Wright (jevonwright)
Date: 2008-11-18 15:25

Message:
Hi, in the latest SVN trunk you can assert this like so:

IElement table = getElementById("my_table");
assertNotSame(0, table.getElements("//tr").size());

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1063062&group_id=61302

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to