Sha256: 9f0109dd3371c495d67dc8a123489a59d632f3e418e6f69ca46a3758a753b35a

Contents?: true

Size: 533 Bytes

Versions: 29

Compression:

Stored size: 533 Bytes

Contents

# Reopen com.gargoylesoftware.htmlunit.ConfirmHandler to provide an interface to
# confirm a dialog and capture its message
module HtmlUnit
  module ConfirmHandler

    # Boolean - true for ok, false for cancel
    attr_accessor :handleConfirmValue

    # last confirmation's message
    attr_reader   :text

    # handleConfirm will be called by htmlunit on a confirm, so store the message.
    def handleConfirm(page, message)
      @text = message
      return handleConfirmValue.nil? ? true : handleConfirmValue
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
akephalos2-2.1.3-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.3 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.2-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.2 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.1.2-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.1.2 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-stable-2.1.1.1 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.1.1-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.1.1 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.1-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.1 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.0-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.1.0 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.0.9-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.0.9 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.0.8.1-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.0.8.1 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.0.8-java lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.0.8 lib/akephalos/htmlunit/ext/confirm_handler.rb
akephalos2-2.0.7-java lib/akephalos/htmlunit/ext/confirm_handler.rb