There are so many definitions around modal dialogs, did you call click_no_wait before your method. There are a variety of ways to deal with dialog boxes, all have been posted, so search for it if that doesn't work. Post your solution if it does work.
Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Wed, Jul 29, 2009 at 2:26 PM, ghidu <[email protected]> wrote: > > Hello, > Sorry for the previous message, the finger slipped onver SPACE :) > I cannot open a modal dialog and return from it. > This is waht I do: > Thread.abort_on_exception = true > t = Thread.new { > button.fire_event("onmousedown") > } > > t.kill > > It never reaches t. Firing the event onmouse down on button opens the > modal dialog. > How can I get it to work? > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
