[Wtr-general] Drop Down Lists (li)

Andy Case Andy.Case at qsa.qld.edu.au
Tue Jun 13 22:20:42 EDT 2006


I am new to WATIR/RUBY and have run into difficulty with a drop down
list, example HTML below.
The example documentation doesn't seem to cover this.
 
Can anyone suggest how I would use WATIR to select the drop down
options?
 
  <div id="nav1">
      <a name="nav1"></a>
      <ul id="udm" class="udm">
        <li>
          <a class="nohref">Registration</a>
          <ul style="width:190%">
            <li><a style="white-space:nowrap"
href="/etrf/learner/search.do">List Learning Accounts</a></li>
            <li><a style="white-space:nowrap"
href="/etrf/learner/searchCriteria.do">Search Learning Accounts</a></li>
            <li><a style="white-space:nowrap"
href="/etrf/learner/new.do">Register Individual Learner</a></li>
            <li><a style="white-space:nowrap"
href="/etrf/registration/dataloads/currentLoad.do">Register Multiple
Learners</a></li>
            <li><a style="white-space:nowrap"
href="/etrf/learner/findCriteria.do">Enrol Individual Learner</a></li>
            <li><a style="white-space:nowrap"
href="/etrf/learner/learnerILOList.do">Manage Multiple ILOs</a></li>
          </ul>
        </li>
        <li>
          <a class="nohref">Banking of Credits</a>
          <ul style="width:135%">
            <li><a style="white-space:nowrap"
href="/boc/faces/searchlearners/searchresults.jsp?init=true">List
Learning Accounts</a></li>
            <li><a style="white-space:nowrap"
href="/boc/faces/searchlearners/searchlearners.jsp">Search Learning
Accounts</a></li>
            <li><a style="white-space:nowrap"
href="/boc/faces/courses/managecourses.jsp">Manage Courses</a></li>
          </ul>
        </li>

cheers
Andy 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended 
recipient(s) only. If you received this email by mistake, please, 
as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily 
reflect those of the Queensland Studies Authority. All reasonable 
precautions have been taken to ensure that this email contained no 
viruses at the time it was sent.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060614/a32e5820/attachment.html 


More information about the Wtr-general mailing list