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

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -