this html doesn't look like a drop down list, it looks like
a bunch of straightforward links (to me at least). maybe your html is
incomplete?
if you're really dealing with a drop-down list, I'm
guessing you're dealing with what watir calls select lists
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Case
Sent: Tuesday, June 13, 2006 10:21 PM
To: [email protected]
Subject: [Wtr-general] Drop Down Lists (li)
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="">List Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">Search Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">Register Individual Learner</a></li>
<li><a style="white-space:nowrap" href="">Register Multiple Learners</a></li>
<li><a style="white-space:nowrap" href="">Enrol Individual Learner</a></li>
<li><a style="white-space:nowrap" href="">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="">List Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">Search Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">Manage Courses</a></li>
</ul>
</li>
<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="">List Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">Search Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">Register Individual Learner</a></li>
<li><a style="white-space:nowrap" href="">Register Multiple Learners</a></li>
<li><a style="white-space:nowrap" href="">Enrol Individual Learner</a></li>
<li><a style="white-space:nowrap" href="">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="">List Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">Search Learning Accounts</a></li>
<li><a style="white-space:nowrap" href="">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.
CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
