I do the following,,
b.execute_script <<-JS
$($('.chzn-select[name=\"issues\"]
option[value=\"yourvalue\"]')[0]).attr('selected', 'selected');
$('.chzn-select[name=\"issues\"]').chosen().trigger('liszt:updated');
$('.chzn-select[name=\"issues\"]').chosen().change();
JS
On Wednesday, January 23, 2013 4:24:14 AM UTC-5, [email protected] wrote:
>
> Hi
> I tried to use watir in order to test a ruby made webpage that include
> some chosen dropdown list.
> how do i select a value from the list?
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]