Hi, I have a dojo dialog box (to search for a customer) that pops up when I click on a button on the main window. I have tried all methods to locate it, but none of them worked. The source of the dialog box is:
<div id="dijit_Dialog_0" class="dijitDialog dijitContentPane" waistate="labelledby-dijit_Dialog_0_title" wairole="dialog" tabindex="-1" role="dialog" aria-labelledby="dijit_Dialog_0_title" widgetid="dijit_Dialog_0" title="" style="position: absolute; top: 189.483px; opacity: 1; left: 434.3px;"> <div class="dijitDialogTitleBar" dojoattachpoint="titleBar" title="Account Search"> <span id="dijit_Dialog_0_title" class="dijitDialogTitle" dojoattachpoint="titleNode">Account Search</span> <span dojoattachevent="onclick: onCancel" class="dijitDialogCloseIcon" dojoattachpoint="closeButtonNode" title="Cancel"> <span class="closeText" dojoattachpoint="closeText" title="Cancel">x</span> </span> </div> </div> I tried the following code (with Watir::IE.attach_timeout set to 10.0). Also tried with autoit but no success: Watir.autoit.WinWait('Account Search') Test code: def test_CreateCustomer # Click on Create link $ie.div(:id, 'adsTop').div(:id, 'customerFilter').button(:id, 'customerCreate').click_no_wait $ie.modal_dialog.div(:class, 'dijitDialogPaneContent').div(:id, 'accountSearchBox').text_field(:id, 'aSearch').value='ABC' $ie.modal_dialog.div(:class, 'dijitDialogPaneContent').div(:id, 'accountSearchBox').button(:id, 'aSearchBtn_label').click end The above test works with neither click_no_wait nor click. I get the following exception: Watir::Exception::NoMatchingWindowFoundException: Modal Dialog not found. Timeou t = 10.0 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/modal_dialog.rb: 37:in `lo cate' ... Any alternate suggestions? Thanks!
-- 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