Re: click_no_wait not working

45 views
Skip to first unread message

Chuck van der Linden

unread,
May 17, 2013, 1:50:44 PM5/17/13
to watir-...@googlegroups.com
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 

Jarmo Pertman

unread,
May 18, 2013, 7:48:22 AM5/18/13
to watir-...@googlegroups.com
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:
Reply all
Reply to author
Forward
0 new messages