Run you part of code in new thread: thr = Thread.new { your_object.fire_event("onMouseDown") your_object.fire_event("onMouseUp") } sleep(5) #Waiting for end of execution of thread #continue your test
On 26 янв, 23:25, Bill Mosteller <w...@greatdecals.com> wrote: > The application situation is that the user is about to discard unsaved > work. A dialog box appears titled "Windows Internet Explorer" saying > "Are you sure you want to delete the selected Email?" with buttons > "OK" and "Cancel". > > I thought my prayers were answered for this when I > found:http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups > > While it proposes five solutions to the problem, solutions 3 thorugh 5 > require the use of .click_no_wait. I'm testing a SproutCore > application, and .click doesn't work, so .click_no_wait doesn't, > either. (I'm using .fire_event("onMouseDown") followed by .fire_event > ("onMouseUp") to click on things. > > So I tried solutions 1 and 2 in the article, and while I got both to > execute without errors in my application, neither approach dismisses > my modal dialog box. > > Thankis. > Bill Mosteller > Eloqua --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---