Watir question regarding select_list and reloading
I have a drop down with multiple options. Whenever you choose an option, the page reloads wit开发者_如何学运维h data specific with that option. Currently I'm using
select.list(:name, strg).set(value)
and it does that part just fine, but it does not reload the page with the specific data. Anyone know how to help. When i watch it in action, it doesn't select the option either, but my logs show that it does.Thanks.
Edit: Got it to work with fire_event("onclick")
Without seeing the page, my guess is that you have to fire JavaScript event. Something like:
select.list(:name, strg).set(value)
select.list(:name, strg).fire_event "onchange"
ie.select_list(:name, strg).set
If that doesn't work, can you post an html snippet?
精彩评论