[Webtest] Problem setting radio button (incl. Javascript)
Christian Kölle
Christian Kölle
Wed, 16 Jan 2008 12:27:47 +0100
Marc Guillemot wrote:
>
> can you provide the full stack trace?
>
Hi
There is no stack trace. The step silently fails. Here's the
corresponding part of the console log:
[storeXPath] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
storeXPath (22/33)
[setRadioButton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
setRadioButton (23/33)
[setRadioButton] INFO (com.canoo.webtest.engine.WebClientContext) -
Current form set to
(action=dn0302Navigate.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0)
[setRadioButton] INFO
(com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable
fields, considering only the first one
[setRadioButton] ERROR (com.gargoylesoftware.htmlunit.html.HtmlForm) -
org.jaxen.XPathSyntaxException: Expected: ]
[setRadioButton] DEBUG
(com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput) - Firing Event
change (Current Target: HTMLElement for HtmlRadioButtonInput[<input
value="immediate" type="radio"
onclick="ConfirmSelectionAsync('dn0302ItemSelection.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0','immediate','-375616497',this)"
name="selectedDeleteTimeItems['-375616497']">]);
[setRadioButton] DEBUG
(com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput) - Firing Event
click (Current Target: HTMLElement for HtmlRadioButtonInput[<input
value="immediate" type="radio"
onclick="ConfirmSelectionAsync('dn0302ItemSelection.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0','immediate','-375616497',this)"
name="selectedDeleteTimeItems['-375616497']">]);
[setRadioButton] DEBUG
(com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer)
- Executing click handler for HtmlRadioButtonInput[<input
value="immediate" type="radio"
onclick="ConfirmSelectionAsync('dn0302ItemSelection.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0','immediate','-375616497',this)"
name="selectedDeleteTimeItems['-375616497']">]
[setRadioButton] DEBUG
(com.gargoylesoftware.htmlunit.DefaultCredentialsProvider) - Flushed
marked answers
[setRadioButton] DEBUG
(com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest) -
Starting XMLHttpRequest thread for asynchronous request
Christian