<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/struct/control/select/element/name/3" class="A" scope="wml" testtype="application" type="manual" source="wml13#11.6.2.1" device="both">
  <assertion>When the NAME attribute of the SELECT element is set to a string, it
defines the name of a variable in which to record the user's selection(s).
If the variable named by the NAME attribute is set when the element is
displayed, the value of the variable is used to pre-select option(s) within
the SELECT element.
</assertion>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
    <result>
      <name>test</name>
      <value>two</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go href="#card1">
<setvar name="test" value="two"/>
</go>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<p>Item 2 is selected:
<select name="test" multiple="false">
<option value="one">1</option>
<option value="two">2</option>
<option value="three">3</option>
</select>
! DO NOT deselect item 2 before leaving the test
</p>
<p>Was item 2 pre-selected?
<yesno>
</p>
</card>
]]>
    </card>
  </cards>
</test>

