Feature Requests item #1236619, was opened at 2005-07-12 17:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1236619&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: None
Group: None
Status: Open
Priority: 5
Submitted By: Dennis Cheung (hkdennis2k)
Assigned to: Nobody/Anonymous (nobody)
Summary: content assertion in XPath

Initial Comment:
I think, using assertTextPresent / assertTextNotPresent
/ assertTextInTable are foolish.
There is too complex and difficult to do test many cases.

But, there are one easy solution.

make jwebunit also use DOM/XPath for content assertion.

In many common website, we don't add unique id into
every table we have. But, always have a DOM tree.

e.g. 
assertTablePresent("tableid");
can replace by
assertContentExists("//[EMAIL PROTECTED]'tableid']");

but, we can do many more, in easy way, without create
numebers of method in API.

assertNodeExists("//[EMAIL PROTECTED]'contentarea']/*/[EMAIL 
PROTECTED]'tableid']");

Why not I just use XPath? because I use others feature
provide by jwebunit.



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

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


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to