[ http://webtest-community.canoo.com/jira/browse/WT-380?page=all ] Marc Guillemot closed WT-380: -----------------------------
Fix Version: Future versions Resolution: Fixed Assign To: Marc Guillemot The provided name was used unescaped in an XPath expression. This has been fixed since some time. > 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 > Assignee: Marc Guillemot > Fix For: Future versions > > 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/inp...@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 _______________________________________________ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest