Watir Question

hi, there is one select list there in my page, I am selecting through
select_list() method, It’s ofcourse, it’s choosing the element, but the
value is not stored in browser value, So the change is not reflecting
while I go to the another field which depends upon this field. Is there
anyone can you suggest any solution for this?

Give me a link or the page HTML, and the relevant code, and I’ll look
into it.

hi, I will give you some info before I give you the HTML page, Actually
this change in select_list triggers some ajax action behind. What Watir
does is, it just set the element, but it’s not triggering that ajax
action.If I have done manually then this trigger is happening. So I am
trying to write the code like,

b.select_list(:id,‘something’).select(“Car”)
b.select_list(:id,‘something’).fire_event(“onchange”)

But it’s not working for me, Can you make some changes so that it would
work for me?

hi Jeol,

I have resolved the problem just replacing ‘class Option’ in Watir 3.0.0
with Watir 5.0.0