# Watir to access combobox

**URL:** <https://www.ruby-forum.com/t/watir-to-access-combobox/115233>\
**Category:** Ruby\
**Created:** [September 22, 2007, 2:21am UTC](https://www.ruby-forum.com/t/watir-to-access-combobox/115233 "2007-09-22T02:21:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Post date:** [September 22, 2007, 2:21am UTC](https://www.ruby-forum.com/t/watir-to-access-combobox/115233/1 "2007-09-22T02:21:09Z")

</div>

I’m new to watir and IE Developer Toolbar so please bear with me.

I have a combobox in a website that i want to set. The ‘Select Element  
by  
Click’ feature in IE Developer Toolbar doesn’t work on this combobox.  
Does that mean that I can’t set the combobox?

If I can set it, how? would appreciate code snippets.

---

<div class="post-metadata">

**Author:** ![sean\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Post date:** [September 25, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/watir-to-access-combobox/115233/2 "2007-09-25T23:15:52Z")

</div>

On Sep 21, 7:18 pm, Sean N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m new to watir and IE Developer Toolbar so please bear with me.
> 
> I have a combobox in a website that i want to set. The ‘Select Element by  
> Click’ feature in IE Developer Toolbar doesn’t work on this combobox.  
> Does that mean that I can’t set the combobox?
> 
> If I can set it, how? would appreciate code snippets.

If you know the name of the select list you can try this

ie.select\_list(:name, ‘name’).select\_value(‘value’)

Luis

---

<div class="post-metadata">

**Author:** ![sean\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Post date:** [September 25, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/watir-to-access-combobox/115233/3 "2007-09-25T23:17:02Z")

</div>

On Sep 21, 7:18 pm, Sean N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m new to watir and IE Developer Toolbar so please bear with me.
> 
> I have a combobox in a website that i want to set. The ‘Select Element by  
> Click’ feature in IE Developer Toolbar doesn’t work on this combobox.  
> Does that mean that I can’t set the combobox?
> 
> If I can set it, how? would appreciate code snippets.

If you know the name of the select list you can try this

ie.select\_list(:name, ‘name’).select\_value(‘value’)

Luis
