gems/ruby/2.2.0/gems/watir-webdriver-0.7.0/lib/watir-webdriver/extensions/alerts.rb
#
# Overwrite window.confirm()
#
# This method is provided by an optional require - API is subject to change.
#
Overwrite window.confirm()
This method is provided by an optional require - API is subject to change.
Overwrite window . confirm () This method is provided by an optional require - API is subject to change .
def confirm(bool, &blk)
      warn 'AlertHelper is deprecated. Use the new Alert API instead (e.g. browser.alert.ok)'
      execute_script "window.confirm = function(msg) { window.__lastWatirConfirm = msg; return #{!!bool} }"
      yield
      execute_script "return window.__lastWatirConfirm"
    end
def confirm ( bool , & blk ) warn 'AlertHelper is deprecated. Use the new Alert API instead (e.g. browser.alert.ok)' execute_script "window.confirm = function(msg) { window.__lastWatirConfirm = msg; return #{!!bool} }" yield execute_script "return window.__lastWatirConfirm" end
Overwrite window.confirm()
This method is provided by an optional require - API is subject to change.
Overwrite window . confirm () This method is provided by an optional require - API is subject to change .
bool
<not_specific>
blk
<not_specific>