Hi,

I am getting the following error while setting a value to the drop
down list.

Watir Script :
browser.select_list(:name,"ModuleID").set("Audits")


HTML Code:

<select style="display:inline; sourcetype:module; targetid:divModule;
font-size: 8pt; COLOR: #333333; font-family: Verdana; width:280px"
onchange="populateDIV(this); ModuleID_onChange();"
        
onmouseout="hidePathOnPop();this.style.textDecoration='none';this.style.color
='#000000';"
        
onmouseover="this.style.textDecoration='underline';this.style.color
='#0033CC';"
 id="ModuleID" name="ModuleID"  class="sysNavbarActiveSearch" size="1"
>

<option value="cap">
&lt; Module &gt;</option>

<option value="13">&nbsp;&nbsp;&nbsp;Audits
<option value="19">&nbsp;&nbsp;&nbsp;Document Control
<option value="83">&nbsp;&nbsp;&nbsp;Master Incident
<option value="917">&nbsp;&nbsp;&nbsp;mdole
<option value="915">&nbsp;&nbsp;&nbsp;Module12
<option value="916">&nbsp;&nbsp;&nbsp;Module123
<option value="9">&nbsp;&nbsp;&nbsp;Operational Control
<option value="909">&nbsp;&nbsp;&nbsp;play8
<option value="80">&nbsp;&nbsp;&nbsp;Quality Nonconformance
<option value="70">&nbsp;&nbsp;&nbsp;Standard Nonconformance
</select>


Error in the console :

C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/element.rb:
58:in `assert_exists': Unable to locate element, using :name,
"ModuleID" Watir::Exception::UnknownObjectException)
        from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
input_eleme
nts.rb:64:in `select_item_in_select_list'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
input_eleme
nts.rb:48:in `set'
        from Intelex_Audit_1.txt:11


I am not able to find the reason why is it not able to find the Object
with name "ModuleId" whereas in the HTML it is clearly mentioned as
the name.

Please can you help me out?

Regards,
Sudeep

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to