[ http://webtest-community.canoo.com/jira/browse/WT-412?page=all ]
Marc Guillemot closed WT-412:
-----------------------------
Fix Version: Future versions
Resolution: Fixed
Done in build 1700.
*Warning: possible fixes needed in XPath usage*
HtmlUnit doesn't use Jaxen with a custom document navigator anymore for XPath
processing but Xalan with standard DOM node navigation. This has different
consequences:
- shortcuts to verify text content of a node don't work anymore
ex: //tr[td = '2.1'] should be replaced for instance with //tr[td/text() =
'2.1']
- spaces are not trimmed in text
ex: if the text of the above td is " 2.1", the XPath expression should be
changed to //tr[td/text() = ' 2.1']. Alternatively you can use the
wt:cleanText function //tr[wt:cleanText(td) = '2.1']
- syntax check is less forgiving: I've seen some cases of invalid xpath
expressions (for instance with a ")" instead of a "]") that were accepted
previously but that are not accepted anymore.
> XPath: Migrate from Jaxen to DOM based XPath (Warning: may cause some XPath
> failures)
> -------------------------------------------------------------------------------------
>
> Key: WT-412
> URL: http://webtest-community.canoo.com/jira/browse/WT-412
> Project: WebTest
> Type: Task
> Versions: Future versions
> Reporter: Marc Guillemot
> Assignee: Marc Guillemot
> Fix For: Future versions
>
> HtmlUnit 2.0 doesn't use Jaxen anymore. Time to use standard Java 5 XPath
> facilities.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest