# Watir Select\_List Not Triggering Dynamic Page Updates

**URL:** <https://rubytalk.org/t/watir-select-list-not-triggering-dynamic-page-updates/63890>\
**Category:** ruby-talk\
**Created:** [18 October 2011 21:16 UTC](https://rubytalk.org/t/watir-select-list-not-triggering-dynamic-page-updates/63890 "2011-10-18T21:16:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_B](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Richard\_B](https://rubytalk.org/u/Richard_B)\
**Post date:** [18 October 2011 21:16 UTC](https://rubytalk.org/t/watir-select-list-not-triggering-dynamic-page-updates/63890/1 "2011-10-18T21:16:42Z")

</div>

We are writing some automation scripts for a product written in .NET.

PRODUCT:  
- When you choose an item in the select list, it dynamically generates  
new fields to collect. If you manually click the value you want... the  
new fields populate. Also, if you hit a letter on your keyboard, it  
choose the appropriate value and fields populate. BUT... if you just hit  
the down arrow, you can choose the value you want, but the dynamic  
fields don't populate.

PROBLEM:  
- Watir is successfully selecting our list value, but the extra fields  
are not populating. (similar to just hitting down on the arrow keys and  
choosing your value)

WATIR CODE:  
ie.select\_list(:id, "ctl00\_DropDownList1").select("Blah")

I can't change the product that we are testing. Is there another way to  
select values from the select\_list that could emulate a user clicking  
the dropdown box and choosing a value directly?

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

---

<div class="post-metadata">

**Author:** ![David\_Wright](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@David\_Wright](https://rubytalk.org/u/David_Wright)\
**Post date:** [13 December 2011 21:46 UTC](https://rubytalk.org/t/watir-select-list-not-triggering-dynamic-page-updates/63890/2 "2011-12-13T21:46:12Z")

</div>

ie.select\_list(:id, "ctl00\_DropDownList1").select("Blah")  
ie.select\_list(:id, "ctl00\_DropDownList1").fire\_event "onclick"

> <https://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired>

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