internet explorer - JQuery + Watir - event handlers not working -
i have droplist on webpage trying test watir. while watir selects item in droplist, jquery change event isn't fired.
is there way watir (using ie) fire jquery change event?
i had jquery in page, able solve having watir execute javascript fire change event (after had changed selection in droplist)
@browser = watir::browser.new @browser.goto("http://someurl") @browser.select_list(:id, element_id).select(item_to_select) @browser.ie.document.parentwindow.execscript('$("##{element_id}").change();')
where:
- element_id id of droplist in question
- item_to_select item select in droplist
Comments
Post a Comment