Hey there,

I was able to select the item without clicking the button:

browser.text_field(:id, 'ctl00_SampleContent_ComboBox1_TextBox').set
"Whiskey"

Hope this helps!

-George



On Dec 20, 12:50 pm, Igor Tiutiunnykov <igorr...@gmail.com> wrote:
> Thank you very much for the reply, tried in his play, but it does not
> work. I write so:
>
> ff.button(:id => "ctl00_SampleContent_ComboBox1_Button").click
> ff.li(:text =>"Whiskey").click
>
> ie.button(:id => "ctl00_SampleContent_ComboBox1_Button").click
> ie.li(:text, "Whiskey").click
>
> but click on the required element is not happening. I have Windows 7,
> watir, firewatir ^(
>
> On 20 дек, 13:09, Željko Filipin <zeljko.fili...@wa-research.ch>
> wrote:
>
>
>
>
>
>
>
> > On Sun, Dec 19, 2010 at 1:59 PM, Igor Tiutiunnykov <igorr...@gmail.com>
> > wrote:
>
> > > select "Whiskey" from the dropdown list.
>
> > The problem is that you are not dealing with select list, but with a button
> > and unordered list. This worked for me (Mac, Firefox, watir-webdriver):
>
> > browser.button(:id => "ctl00_SampleContent_ComboBox1_Button").click
> > browser.li(:text => "Whiskey").click
>
> > Željko
> > --
> > watir.com - community manager
> > watirpodcast.com - host
> > testingpodcast.com - audio podcasts on software testing. all of them

-- 
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