Lillis, Dara wrote: > > I have a strange problem with using the modal dialog code (I'm using > watir development gem 1.5.1.1017) while running tests on a remote > machine via remote desktop. > > When I am rdesktop-ed to a machine and run some code that uses modal > dialogs (see below for code), it works fine when I am looking at the > remote desktop, but if I minimise the remote desktop or close it and > leave the program running, my test hangs and never clicks on the modal > dialog. > > here's the code I am using: > > browser.link(:text, link_text).click_no_wait > dialog = Watir::Dialog.new > dialog.exists? > dialog.button(dialog_text).click > > any ideas? > We use remote desktop and modal dialogs. I haven't tried to reproduce your exact scenario, but we have no reports of this kind of problem.
I suggest removing your "dialog.exists?". I'm not so sure that actually works anyway (i.e. it won't return false when a dialog doesn't exist), and in your example, it serves no purpose anyway. Bret _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
