[wtr-general] Re: Waitr fails to fire_event for select_list

2011-07-08 Thread Michael
Seems to be a valid bug - created bug report http://jira.openqa.org/browse/WTR-485 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegrou

[wtr-general] Re: Waitr fails to fire_event for select_list

2011-07-06 Thread Michael
Hi Abe, thanks for the suggestion. In this case the element is there, it did locate it, it just can't find the fireEvent method for it... JavaScript can find it and fire events no problem, so I'm not sure why Watir is having issues here. I'll create a bug report. -- Before posting, please read

[wtr-general] Re: Waitr fails to fire_event for select_list

2011-07-06 Thread Abe Heward
You could write your own rescue clause for the error: begin browser.select_list(:name, 'select').fire_event('change') rescue WIN32OLERuntimeError puts "A message that will tell you it can't find the element you wanted." end Hope that's helpful. Abe -- Before posting, please read http://wa

[wtr-general] Re: Waitr fails to fire_event for select_list

2011-07-06 Thread Abe Heward
You could write your own rescue clause for the WIN32OLERuntimeError ... begin your code that may error out... rescue WIN32OLERuntimeError puts "No registered event for this (or whatever message would work)..." end ...Just a thought. Abe -- Before posting, please read http://watir.com/suppo