https://sourceforge.net/mailarchive/forum.php?thread_name=CD5299E6C772234AA94DB25B3E0134661B984205%40lwlexch02.olympus.f5net.com&forum_name=htmlunit-user




________________________________
De : "Parham, Clinton" <cpar...@biosignia.com>
À : Usage problems for JWebUnit <jwebunit-users@lists.sourceforge.net>
Envoyé le : Jeudi, 21 Mai 2009, 22h16mn 25s
Objet : Re: [JWebUnit-users] Re :  assertTextPresent: text formatting

 
Could you provide a link to the
HTMLUnit thread where the same question is being asked? I cannot find it. Thank
you.
 
From:Julien HENRY
[mailto:henr...@yahoo.fr] 
Sent: Thursday, May 21, 2009 4:01 PM
To: Usage problems for JWebUnit
Subject: [JWebUnit-users] Re : assertTextPresent: text formatting
 
Hi Clinton,

There is currently somenone asking the same question on HtmlUnit mailing list.
The answer of HtmlUnit dev team is the new asText behavior is much more
coherent with web browser behavior.

I'm affraid you will have to update your tests of keep using an old version of
HtmlUnit/JWebUnit (it seems the change was done after HtmlUnit 1.8).

Regards,

Julien
 

________________________________
 
De :"Parham, Clinton" <cpar...@biosignia.com>
À : "jwebunit-users@lists.sourceforge.net"
<jwebunit-users@lists.sourceforge.net>
Envoyé le : Jeudi, 21 Mai 2009, 15h29mn 41s
Objet : [JWebUnit-users] assertTextPresent: text formatting
Hello,
 
I started using the 2.2 JWebUnit release recently and found
that many of my assertTextPresent calls have started failing. After some
digging, I think I see why: it appears that assertTextPresent eventually calls
HTMLUnit’s DomNode.asText() method. The old asText() method ignored various HTML
formatting (such as line separators) and also removed nbsp (non-breaking space)
characters. In the newer code, this has changed. The asText() is now more aware
of HTML formatting (includes line separators) and no longer strips nbsp.
 
Is anyone else struggling with this change? Do I need to
update all my test code or should whoever changed asText() have been more
considerate backward compatibility?
 
Here is the relevant diff in HTMLUnit’s DomNode code (see
line 596 down):
http://htmlunit.svn.sourceforge.net/viewvc/htmlunit/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomNode.java?r1=3506&r2=3569
 
Thank you!
 
 

________________________________
 
The contents contained herein may contain confidential information.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution, printing or action taken on the contents is
strictly prohibited. If you have received this email in error, please notify
the sender immediately and delete this message.


      
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to