Started using watir a couple of days ago (love it), but I'm stuck on these 
modal dialogs. I'm using "watir-1.5.1.1100". It appears the second use of a 
modal dialog causes the script to hang.

Any help would be great! This is my only sticking point so far. I read that you 
should use "click_no_wait" but i'm using document.all[stuff].click and it 
doesn't seem to support that. Thanks for any help.

Here is what I'm doing

1. Open the modal dialog (this works fine)

@@browser.frame( :name, frameName ).document.all[ action1 ].click

2. Use the dialog (this works fine too)

modal1 = @@browser.modal_dialog
modal1.text_field( :name, filedName ).set( inputText )
modal1.document.all[ action_save ].click

3. Open the next dialog (works fine)

@@browser.frame( :name, frameName ).document.all[ action2 ].click

4. Use the dialog (this DOESN'T work)

@@browser.modal_dialog.document.all[ actionConfirm ].flash
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4778&messageID=13199#13199
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to