History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-77
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Assignee: Marc Guillemot
Reporter: Matt Raible
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebTest

getAttributeNode is not supported

Created: 10/Aug/05 20:07:07   Updated: 11/Aug/05 15:12:27
Affects Version/s: 1.6
Fix Version/s: None

Environment: build574, Ant 1.6.5, JDK 1.4.2, OS X


 Description   
When testing my Struts application with client-side validation enabled, I get the following error:

Exception raised: com.canoo.webtest.engine.StepExecutionException: Unexpected exception caught: com.gargoylesoftware.htmlunit.ScriptException: getAttributeNode is not a function., Step: ClickButton at /Users/mraible/Work/appfuse/test/web/web-tests.xml:178: with (label="Signup", stepId="<unknown>", stepType="clickbutton")com.canoo.webtest.engine.StepExecutionException: Unexpected exception caught: com.gargoylesoftware.htmlunit.ScriptException: getAttributeNode is not a function., Step: ClickButton at /Users/mraible/Work/appfuse/test/web/web-tests.xml:178: with (label="Signup", stepId="<unknown>", stepType="clickbutton")
        at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:399)
        at com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:110)
        at com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:236)


But getAttributeNode() seems to be a valid function:

http://www.mozilla.org/docs/dom/domref/dom_el_ref40.html

 All   Comments   Change History      Sort Order:
Comment by Marc Guillemot [10/Aug/05 20:33:10]
You should open the issue by htmlunit.

I don't know if we should keep this issue for webtest opened as long as it is not fixed in htmlunit and the new jar is provided or close it as invalid because it concerns htmlunit.

Comment by Matt Raible [11/Aug/05 14:45:21]

Comment by Marc Guillemot [11/Aug/05 15:12:27]
The version you used is too old: this is fixed in current version.