<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/struct/control/select/option/2" class="A" scope="wml" testtype="application" type="manual" source="wml13#11.6.2.2" device="both">
  <assertion>When the ONPICK attribute of the OPTION element is set to a URL, and
the MULTIPLE attribute of the enclosing SELECT element is set to TRUE, it
defines a task that is to be executed whenever the option is selected or
deselected.
</assertion>
  <results>
    <result>
      <name>test</name>
      <value>1</value>
    </result>
    <result>
      <name>selected</name>
      <value>pass</value>
    </result>
    <result>
      <name>deselected</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<p>Do the following:
Firstly select option 1 Select Me.
On return select option 2 De-select me.
<select name='test' value='2' multiple='true'>
<option onpick='#card1' value='1'>Select me</option>
<option onpick='#card2' value='2'>De-select me</option>
</select>
</p>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id='card1'>
<onevent type='onenterforward'>
<prev>
<setvar name='selected' value='pass'/>
</prev>
</onevent>
<auto_failed>
</card>
]]>
    </card>
    <card id="2">
      <![CDATA[<card id='card2'>
<onevent type='onenterforward'>
<go href="<responseurl>">
<postfield name='deselected' value='pass'/>
<postfield name='selected' value='$selected'/>
<postfield name='test' value='$test'/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
</test>

