Well until that happens here is the solution to this particular dilemma. This could be modified make other non-click elements (that have a JSPopup from the OnClick event).
reguire 'thread' def startClicker(ie, button) # Strart a new thread that will dismiss the JSPopup. t = Thread.new { w = WinClicker.new hwnd = $ie.enabled_popup(10) if nil == hwnd w.clickWindowsButton_hwnd(hwnd, button) t.join w = nil } End ... # Start the thread before it gets locked by the JSPopup startClicker( $ie, 'OK') $ie.checkBox( :name, "read_instructions").set As usual there is probably a better way of doing this...if you do improve this please pass it on. --Mark -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Jewett Sent: Tuesday, April 17, 2007 6:24 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] JS Alert from a checkbox This (http://jira.openqa.org/browse/WTR-146) ticket and patch outlines a possible framework for dealing with this throughout watir. Might be a decent reason to vote for the feature on Jira. In the meantime, the method of modifying the methods in watir.rb in the patch should work for your problem as well, but you'll be stuck patching watir.rb every time you install. Ethan On 4/16/07, Cain, Mark <[EMAIL PROTECTED]> wrote: > > > > > Does anyone have an answer to this? I can't seem to get the click_no_wait > to work for checkboxes. > > > > > > --Mark > > > > ________________________________ > > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Cain, Mark > Sent: Friday, April 13, 2007 10:05 AM > To: wtr-general@rubyforge.org > Subject: [Wtr-general] JS Alert from a checkbox > > > > > I have a JS Alert that popups from clicking a checkbox. How can I use the > click_no_wait functionality for the 'set' method of the checkbox? > > > > Thanks, > > ____________________ > Mark L. Cain > LMIT - E*STARS(r) ~ Lead Test Engineer > 1981 Snyder, MSIN: G3-62, Richland, WA 99354 > [EMAIL PROTECTED] > 509.376.5458 > "640 Kilobytes of computer memory ought to be enough for anybody." - Bill > Gates, 1981 > > > _______________________________________________ > Wtr-general mailing list > Wtr-general@rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general