[Webtest] [webtest][JIRA] Created: (WT-380) Selection of components with
quotes and brackets fail
Christian Kölle (JIRA)
Christian Kölle (JIRA)
Mon, 21 Jan 2008 09:21:27 +0100 (CET)
Selection of components with quotes and brackets fail
-----------------------------------------------------
Key: WT-380
URL: http://webtest-community.canoo.com/jira/browse/WT-380
Project: WebTest
Type: Bug
Environment: Linux, Java 1.5
Reporter: Christian Kölle
When trying to reference a component (e.g. a radio button) with a name that contains quotes and/or brackets webtest silently fails in selecting the component.
For example:
HTML:
<input type="radio" value="immediate"
name="selectedDeleteTimeItems['-375616497']"
onClick="ConfirmSelectionAsync('dn0302ItemSelection.action;jsessionid=928342894623946','immediate','-375616497',this)"
/>
WebTest script:
<storeXPath xpath="//tr[contains(td/a/text(),
'dn03-domain.ch')]/td/input[@type='radio' and starts-with(@name,
'selectedDeleteTimeItems')]/@name" property="deleteTime"/>
<echo>------- Test:#{deleteTime}</echo>
<setRadioButton name="#{deleteTime}" value="immediate"/>
<verifyRadioButton name="#{deleteTime}" value="immediate" checked="yes"/>
The verifyRadioButton step always fails.
--
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