# Trouble with a dropdown menu on a web page (Watir?)

**URL:** <https://rubytalk.org/t/trouble-with-a-dropdown-menu-on-a-web-page-watir/50122>\
**Category:** ruby-talk\
**Created:** [10 November 2008 22:44 UTC](https://rubytalk.org/t/trouble-with-a-dropdown-menu-on-a-web-page-watir/50122 "2008-11-10T22:44:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kanji\_Yoshikawa](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@Kanji\_Yoshikawa](https://rubytalk.org/u/Kanji_Yoshikawa)\
**Post date:** [10 November 2008 22:44 UTC](https://rubytalk.org/t/trouble-with-a-dropdown-menu-on-a-web-page-watir/50122/1 "2008-11-10T22:44:34Z")

</div>

I'm trying to select two items in two dropdown menus that are  
semi-connected in the page.

When you select an option on the first menu it changes the options in  
the second menu. The problem is that when I directly send the selection  
in the first menu, like:

ie.select\_list(:name, "form-sub-main").select "Hamburger"

The second menu doesn't change. It stays blank as though I had never  
selected anything, so I can't send the next command to the second menu.

Any ideas? I thought I would send keystrokes to the first menu or  
something as that always works, but I don't know the syntax to set that  
up.

Thanks,

N

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
