You would have to use a regular expression for this.

jWebUnit does not have this support in 1.2.  

But I do believe this will be commited in the following 1.3 release of
jwebunit.  I need this feature as well.  I will try and add this patch in
the next few weeks.  Then the next release it will be in there.

However, there is a patch for this.  See the following:
https://sourceforge.net/tracker/index.php?func=detail&aid=884844&group_id=61
302&atid=497984

I suggest applying the patch either in your jwebunit code or placing it your
company super class test case.  Place a deprecated flag so you know you can
pluck it out when you upgrade to the new version of jwebunit.

HTH.

Nick


> -----Original Message-----
> From: Laurent Duperval [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 15, 2004 2:18 PM
> To: [EMAIL PROTECTED]
> Subject: [Jwebunit-users] Checking class of a <div> containing a link
> 
> 
> Hi,
> 
> I want to make sure that a particular link is in a <div> 
> element with a 
> particular class. Is this possible?
> 
> For example, I want to assert that the linkl foo is in a <div> with 
> class bar. Hence this will pass:
> 
> <div class="bar"><a id="foo" href="#"></a></div>
> 
> And this will fail
> 
> <div class="foobar"><a id="foo" href="#"></a></div>
> 
> How can I test this condition?
> 
> L
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> Jwebunit-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
> 


- - - - - - 
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to