Re: [Wtr-general] Modal Dialog and checkbox

2006-10-20 Thread John Lolis
unable to located object in general means that the page has not yet load (as far as I understand it. Instead of sleep (which just slows down everything) try wrapping your code as follows. (The below is just an example, and only my opinion. I'm sure there are 1000 better ways of doing this) :)

Re: [Wtr-general] Modal Dialog and checkbox

2006-10-20 Thread Dave Munns
Without a sufficient delay (in this case 10 seconds), checkboxes are not recognized in the modal dialog - running (nodebug) in Eclipse or running from the command line. This workaround is simple and acceptable short term. Would retry logic in watir be a possible long term solution?

Re: [Wtr-general] Modal Dialog and checkbox

2006-10-20 Thread John Lolis
Timing issues are by far my biggest headache too. I did see a patch (never tried it) that would handle recursive frame waits (or something like that). Not sure if that would handle modal issues. - Posted via Jive Forums

Re: [Wtr-general] Modal Dialog and checkbox

2006-10-20 Thread Bret Pettichord
John Lolis wrote: unable to located object in general means that the page has not yet load (as far as I understand it. I agree that this is probably the reason for the Dave's problem. Specifically the wait logic that normally occurs in Watir, does not work in modal_dialogs (and is thus not

[Wtr-general] Modal Dialog and checkbox

2006-10-19 Thread Dave Munns
I am navigating a modal dialog with radio buttons, buttons, and checkboxes. Everything works when I run in debug mode (using Eclipse). When I run nondebug, the checkbox identifiers (by id) are not recognized. Example code: ie.modal_dialog.checkbox( :id, 'inpCheckBoxDC_19' ).set

Re: [Wtr-general] Modal Dialog and checkbox

2006-10-19 Thread Dave Munns
I'll answer my own question. If the code sleeps long enough, in this case 10 seconds, the checkboxes are recognized and set. This seems to be the common cure for Modal dialog-itis - Posted via Jive Forums

Re: [Wtr-general] Modal Dialog and checkbox

2006-10-19 Thread Bret Pettichord
Are you seeing this problem when you run in Eclipse? Does the same thing happen when you run outside of eclipse? (like from the command line?) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general