Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7598517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:25:33+00:00 2026-05-30T22:25:33+00:00

I have used click_no_wait to click a button and then used javascript_dialog.button(‘OK’).click to click

  • 0

I have used click_no_wait to click a button and then used javascript_dialog.button('OK').click to click the “OK” button on the resulting pop up. This has worked in all situations except for one for me. It appears the click_no_wait is clicking too fast.

By this I mean that when I use click_no_wait the button on the page flashes (as if clicked) but the pop up does not occur, and then my Watir app hangs, waiting for the pop up which does not pop up. If I switch to click then the pop up occurs, but the Watir app hangs (as would be expected).

Is there another option available? The code is below. (I cannot link the actual site, it is behind a passworded area)

Ruby / Watir:

browser.button(:name => "dgPermission:_ctl"+num+":_ctl1").click_no_wait
browser.javascript_dialog.button('OK').click

HTML:

<html><body><div><table style="width:100%; height:600px;"><tr>

<td>Group Name</td>
<td><span disabled="disabled"><input id="dgPermission__ctl2_cbAdd" type="checkbox" name="dgPermission:_ctl2:cbAdd" checked="checked" disabled="disabled" /></span></td>
<td><input type="submit" name="dgPermission:_ctl2:_ctl0" value="Edit" /></td>
<td><input type="submit" name="dgPermission:_ctl2:_ctl1" value="Delete" onclick="javascript:if (!confirm('Are you sure you want to remove this permission?')) return false;" language="javascript" /></td>

</tr></table></div></body></html>

(The page can contain multiple groups, so the middle section could have multiples of that section, each with a different number ID in the dgPermission name)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:25:35+00:00Added an answer on May 30, 2026 at 10:25 pm

    as far as I know the only difference between click and click_no_wait is what happens after the click is sent.

    potentially you could try firing off the event directly

    browser.button(:name => "dgPermission:_ctl"+num+":_ctl1").fire_event('onclick')
    browser.javascript_dialog.button('OK').click
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, Have used this site a few times before and had some great replies
I have used same command button Click event for both Insert, Update functionalities. I'm
In my app I have used an alert dialog builder for button click. So
T have used checkbox column in gridview. On click of a linkbutton, it should
I have used href link in the flexigrid rows. on Click it takes me
I have used the XML Parser before, and even though it worked OK, I
I have used this in my HTML: <q> Hai How r u </q> Which
I have earlier used mbunit 2 and with this plugin I could get my
I am sure this has been asked before, but I have yet to find
I have a strange problem. I have used this before with no problems, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.