Hi, I think here click_no_wait method doesn't work here. you have to handle this by using threads. thanks, kiran.
On May 17, 8:05 am, sHiVa <krapa.ph...@gmail.com> wrote: > Hi Sathish, > Use this code to click on a popup > > require 'test/unit' > require 'watir/ie' > require 'win32ole' > require 'watir/screen_capture' > require 'watir\contrib\enabled_popup' > > #............................Code START for handling a > popup........................................ > > def jsClick( ie, button, user_input=nil) > begin > waitTime=3 > hwnd = ie.enabled_popup(waitTime) > puts("wait time = 30") > if (hwnd) > puts("if = hwnd") > w = WinClicker.new > if ( user_input ) > puts("if = user input") > w.setTextValueForFileNameField(hwnd, "#{user_input}") > end > sleep 3 > puts ("CLICK THE BUTTON") > w.clickWindowsButton_hwnd(hwnd, "#{button}") > w=nil > end > rescue Exception > print "error boss\n" > end > end > #............................Code END for handling a > popup........................................ > > ie.image(:id, > 'ctl00_contentChildWindow_secUserDetails_ctl02_menu_secUserDetails_DXI0_Img').click_no_wait > jsClick(ie, "OK") > > Regards > Siva Phaneendra Krapa > Virtusa --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---