Method: Watir::Alert#ok
- Defined in:
- lib/watir-classic/dialogs/alert.rb
permalink #ok ⇒ Object
Press the “OK” button on the JavaScript dialog.
36 37 38 39 |
# File 'lib/watir-classic/dialogs/alert.rb', line 36 def ok dialog.(:value => "OK").click wait_until_not_exists end |