RE: select option in drop down box

From: barlav (barlav_at_discussions.microsoft.com)
Date: 10/21/04

  • Next message: barlav: "RE: select option in drop down box"
    Date: Thu, 21 Oct 2004 11:49:03 -0700
    
    

    "HudsonKane" wrote:

    > I am trying to select an item from a dropdown box.
    > I get the element with the OPTION tag anme, and with the correct innerText,
    > but when I call elem.click() the first item in the list is always the one
    > that gets selected.
    > Is there something else I can use to select this item?
    > The page is of the form:
    > <form name="formOptionsForm" method="post" action="/formOptionsAction.do"
    > target="myMain">
    > <TABLE cellpadding=2 cellspacing=0 border=0 width=100%>
    > <TR><TD class="heading" colspan=2> Formulary</TD></TR>
    > <TR><TD class="selectBox">
    > <select name=formId size=1 onchange="submitMySelect()">
    > <option selected value="0">First
    > <option value="1164">Second
    > <option value="23">Third
    > </select>
    >


  • Next message: barlav: "RE: select option in drop down box"