[wtr-general] Re: click_no_wait not working
You still have to use #click_no_wait with Watir-Classic to make the alert to appear. Using #click would block indefinitely :( I have written about debugging #click_no_wait problems in the past. It can be slightly out of date, but the big picture should be the same. Read it here: http://itreallymatters.net/post/378669758/debugging-watirs-click-no-wait-method-problemshttp://itreallymatters.net/post/378669758/debugging-watirs-click-no-wait-method-problems#.UZdqWLVTDN4 Jarmo On Friday, May 17, 2013 8:50:44 PM UTC+3, Chuck van der Linden wrote: On Thursday, May 16, 2013 4:34:56 AM UTC-7, Marc Westwood wrote: I'm having some problems with click_no_wait. I have a button which when clicked displays a modaldialog. I am using click_no_wait when clicking the button the button turns yellow but I am not getting the modal dialog displayed. If I use .click the button turns yellow and the modal dialog is displayed. I have also tried .click! this also displays the modal dialog but scripts haults because of the dialog. The button is located within a frame and I am using IE. I read that a few people have had this issue in the past I was wondering if it has being resolved, I am using ruby version 1.9.3p374 and wait-classic 3.7.0 if it's a true JS 'alert' type modal, why not just use .click and the new .alert methods? these are supported by both Watir-classic and Watir-webdriver. See here for some examples http://watirwebdriver.com/javascript-dialogs/ at this point click_no_wait is pretty much deprecated when it comes to dealing with JS dialogs -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: click_no_wait not working
On Thursday, May 16, 2013 4:34:56 AM UTC-7, Marc Westwood wrote: I'm having some problems with click_no_wait. I have a button which when clicked displays a modaldialog. I am using click_no_wait when clicking the button the button turns yellow but I am not getting the modal dialog displayed. If I use .click the button turns yellow and the modal dialog is displayed. I have also tried .click! this also displays the modal dialog but scripts haults because of the dialog. The button is located within a frame and I am using IE. I read that a few people have had this issue in the past I was wondering if it has being resolved, I am using ruby version 1.9.3p374 and wait-classic 3.7.0 if it's a true JS 'alert' type modal, why not just use .click and the new .alert methods? these are supported by both Watir-classic and Watir-webdriver. See here for some examples http://watirwebdriver.com/javascript-dialogs/ at this point click_no_wait is pretty much deprecated when it comes to dealing with JS dialogs -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: click_no_wait not working for Checkbox
Try increasing the sleep time. When it works through IRB, but not in code, most often than not, the issue is related to timing. On Nov 30, 3:30 am, Deep dedeepya.kanipa...@gmail.com wrote: Hi, I need to clear the checkbox which gives a pop up with OK and Cancel buttons. Then I have to click on OK button to proceed. I have used the following code to clear the check box: Object.click_no_wait Sleep 40 To click on OK button on the pop up, code used is When /^clicks OK in the pop up box$/i do sleep 5 startClicker(browser, OK, 60) end Have the following method used for startClicker def startClicker(browser, button , waitTime = 9, user_input = nil) # get a handle if one exists hwnd = browser.enabled_popup(waitTime) if (hwnd) # yes there is a popup w = WinClicker.new if (user_input) w.setTextValueForFileNameField(hwnd, #{user_input}) end # I put this in to see the text being input it is not necessary to work sleep 3 # OK or whatever the name on the button is w.clickWindowsButton_hwnd(hwnd, #{button}) # # this is just cleanup w = nil end end Ruby Version: 1.8.6_26 Issue Description: click_no_wait , clears the check box and throws popup when tested through IRB. But the same is not working when i run the automated script. Can anyone provide your inputs here. Thanks much. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com